mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 21:43:18 +00:00
replace findby to findbyone for getting a user story
This commit is contained in:
@@ -20,7 +20,7 @@ class StoryWZRepository extends EntityRepository
|
|||||||
|
|
||||||
public function findUserStory(\User_Adapter $user, \record_adapter $Story)
|
public function findUserStory(\User_Adapter $user, \record_adapter $Story)
|
||||||
{
|
{
|
||||||
return $this->findBy(
|
return $this->findOneBy(
|
||||||
array(
|
array(
|
||||||
'usr_id' => $user->get_id(),
|
'usr_id' => $user->get_id(),
|
||||||
'sbas_id' => $Story->get_sbas_id(),
|
'sbas_id' => $Story->get_sbas_id(),
|
||||||
|
Reference in New Issue
Block a user