|
|
@@ -172,10 +172,22 @@ class FavoriteController extends Controller
|
|
172
|
172
|
'count' => $this->container->getParameter('search_default_count')
|
|
173
|
173
|
));
|
|
174
|
174
|
|
|
|
175
|
+ $tags = $this->getDoctrine()->getRepository('MuzichCoreBundle:UsersElementsFavorites')
|
|
|
176
|
+ ->getTags($viewed_user->getId())
|
|
|
177
|
+ ;
|
|
|
178
|
+
|
|
|
179
|
+ $tags_id = array();
|
|
|
180
|
+ foreach ($tags as $tag)
|
|
|
181
|
+ {
|
|
|
182
|
+ $tags_id[] = $tag->getId();
|
|
|
183
|
+ }
|
|
|
184
|
+
|
|
175
|
185
|
return array(
|
|
176
|
|
- 'user' => $this->getUser(),
|
|
177
|
|
- 'viewed_user' => $viewed_user,
|
|
178
|
|
- 'elements' => $search_object->getElements($this->getDoctrine(), $this->getUserId())
|
|
|
186
|
+ 'tags' => $tags,
|
|
|
187
|
+ 'tags_id_json' => json_encode($tags_id),
|
|
|
188
|
+ 'user' => $this->getUser(),
|
|
|
189
|
+ 'viewed_user' => $viewed_user,
|
|
|
190
|
+ 'elements' => $search_object->getElements($this->getDoctrine(), $this->getUserId())
|
|
179
|
191
|
);
|
|
180
|
192
|
}
|
|
181
|
193
|
|