@@ -47,7 +47,7 @@ public function showOverviewAction($userId)
4747 $ userId = $ this ->getUser ()->getId ();
4848 }
4949
50- $ user = $ this ->getUserModel ()->findOneUserWithProfile ($ userId );
50+ $ user = $ this ->getUserModel ()->findOneUserWithProfileById ($ userId );
5151
5252 return $ this ->renderResponse ('CCDNUserProfileBundle:User:Profile/show_overview.html. ' , array (
5353 'crumbs ' => $ this ->getCrumbs ()->addProfileOverviewShow ($ user ),
@@ -73,7 +73,7 @@ public function showBioAction($userId)
7373 $ userId = $ this ->getUser ()->getId ();
7474 }
7575
76- $ user = $ this ->getUserModel ()->findOneUserWithProfile ($ userId );
76+ $ user = $ this ->getUserModel ()->findOneUserWithProfileById ($ userId );
7777
7878 return $ this ->renderResponse ('CCDNUserProfileBundle:User:Profile/show_bio.html. ' , array (
7979 'crumbs ' => $ this ->getCrumbs ()->addProfileBioShow ($ user ),
@@ -96,7 +96,7 @@ public function editPersonalAction($userId)
9696 $ userId = $ this ->getUser ()->getId ();
9797 }
9898
99- $ user = $ this ->getUserModel ()->findOneUserWithProfile ($ userId );
99+ $ user = $ this ->getUserModel ()->findOneUserWithProfileById ($ userId );
100100
101101 // Does the requested $user match our session user id? Or, are we an admin?
102102 if ($ user ->getId () != $ this ->getUser ()->getId ()) {
@@ -135,7 +135,7 @@ public function editInfoAction($userId)
135135 $ userId = $ this ->getUser ()->getId ();
136136 }
137137
138- $ user = $ this ->getUserModel ()->findOneUserWithProfile ($ userId );
138+ $ user = $ this ->getUserModel ()->findOneUserWithProfileById ($ userId );
139139
140140 // Does the requested $user match our session user id? Or, are we an admin?
141141 if ($ user ->getId () != $ this ->getUser ()->getId ()) {
@@ -174,7 +174,7 @@ public function editContactAction($userId)
174174 $ userId = $ this ->getUser ()->getId ();
175175 }
176176
177- $ user = $ this ->getUserModel ()->findOneUserWithProfile ($ userId );
177+ $ user = $ this ->getUserModel ()->findOneUserWithProfileById ($ userId );
178178
179179 // Does the requested $user match our session user id? Or, are we an admin?
180180 if ($ user ->getId () != $ this ->getUser ()->getId ()) {
@@ -213,7 +213,7 @@ public function editAvatarAction($userId)
213213 $ userId = $ this ->getUser ()->getId ();
214214 }
215215
216- $ user = $ this ->getUserModel ()->findOneUserWithProfile ($ userId );
216+ $ user = $ this ->getUserModel ()->findOneUserWithProfileById ($ userId );
217217
218218 // Does the requested $user match our session user id? Or, are we an admin?
219219 if ($ user ->getId () != $ this ->getUser ()->getId ()) {
@@ -252,7 +252,7 @@ public function editBioAction($userId)
252252 $ userId = $ this ->getUser ()->getId ();
253253 }
254254
255- $ user = $ this ->getUserModel ()->findOneUserWithProfile ($ userId );
255+ $ user = $ this ->getUserModel ()->findOneUserWithProfileById ($ userId );
256256
257257 // Does the requested $user match our session user id? Or, are we an admin?
258258 if ($ user ->getId () != $ this ->getUser ()->getId ()) {
@@ -291,7 +291,7 @@ public function editSignatureAction($userId)
291291 $ userId = $ this ->getUser ()->getId ();
292292 }
293293
294- $ user = $ this ->getUserModel ()->findOneUserWithProfile ($ userId );
294+ $ user = $ this ->getUserModel ()->findOneUserWithProfileById ($ userId );
295295
296296 // Does the requested $user match our session user id? Or, are we an admin?
297297 if ($ user ->getId () != $ this ->getUser ()->getId ()) {
0 commit comments