replace findby to findbyone for getting a user story

This commit is contained in:
Nicolas Le Goff
2011-12-27 12:48:32 +01:00
parent a1ad46cabf
commit b30f46c8b0

View File

@@ -20,7 +20,7 @@ class StoryWZRepository extends EntityRepository
public function findUserStory(\User_Adapter $user, \record_adapter $Story)
{
return $this->findBy(
return $this->findOneBy(
array(
'usr_id' => $user->get_id(),
'sbas_id' => $Story->get_sbas_id(),