mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Add \Repositories\StoryWZERepositopry::getUserStory method
This commit is contained in:
@@ -18,4 +18,15 @@ class StoryWZRepository extends EntityRepository
|
||||
return $this->findBy(array('usr_id' => $user->get_id()));
|
||||
}
|
||||
|
||||
public function findUserStory(\User_Adapter $user, \record_adapter $Story)
|
||||
{
|
||||
return $this->findBy(
|
||||
array(
|
||||
'usr_id' => $user->get_id(),
|
||||
'sbas_id' => $Story->get_sbas_id(),
|
||||
'record_id' => $Story->get_record_id(),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user