Skip to content

Commit

Permalink
Merge pull request #11 from lingoda/04-fix-user-integration-data
Browse files Browse the repository at this point in the history
Avoid using __toString in repositories findByXX
  • Loading branch information
jorisdugue committed Aug 27, 2020
2 parents 7a84265 + 579be1b commit 46fa2d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Controller/H5PInteractionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function contentUserData(Request $request, $contentId, $dataType, $subCon
'subContentId' => $subContentId,
'mainContent' => $contentId,
'dataId' => $dataType,
'user' => $user
'user' => $user->getId()
]
);
if(!$update){
Expand Down Expand Up @@ -126,7 +126,7 @@ public function contentUserData(Request $request, $contentId, $dataType, $subCon
'subContentId' => $subContentId,
'mainContent' => $contentId,
'dataId' => $dataType,
'user' => $user
'user' => $user->getId()
]
);
//decode for read the informations
Expand Down
2 changes: 1 addition & 1 deletion Service/ResultService.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function removeData($contentId, $dataType, $user, $subContentId)
'subContentId' => $subContentId,
'mainContent' => $contentId,
'dataId' => $dataType,
'user' => $user
'user' => $user->getId()
]
);
if (count($ContenUserData) > 0){
Expand Down

0 comments on commit 46fa2d7

Please sign in to comment.