mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 12:03:14 +00:00
32 lines
720 B
PHP
32 lines
720 B
PHP
<?php
|
|
|
|
namespace Repositories;
|
|
|
|
use Doctrine\ORM\EntityRepository;
|
|
|
|
/**
|
|
* StoryWZRepository
|
|
*
|
|
* This class was generated by the Doctrine ORM. Add your own custom
|
|
* repository methods below.
|
|
*/
|
|
class StoryWZRepository extends EntityRepository
|
|
{
|
|
|
|
public function findByUser(\User_Adapter $user)
|
|
{
|
|
return $this->findBy(array('usr_id' => $user->get_id()));
|
|
}
|
|
|
|
public function findUserStory(\User_Adapter $user, \record_adapter $Story)
|
|
{
|
|
return $this->findOneBy(
|
|
array(
|
|
'usr_id' => $user->get_id(),
|
|
'sbas_id' => $Story->get_sbas_id(),
|
|
'record_id' => $Story->get_record_id(),
|
|
)
|
|
);
|
|
}
|
|
|
|
} |