mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Implement admin controllers
This commit is contained in:
@@ -12,4 +12,15 @@ use Doctrine\ORM\EntityRepository;
|
||||
*/
|
||||
class OrderElementRepository extends EntityRepository
|
||||
{
|
||||
public function find($id)
|
||||
{
|
||||
$dql = 'SELECT f FROM Entities\FeedPublisher f
|
||||
WHERE f.id = :id ';
|
||||
|
||||
$query = $this->_em->createQuery($dql);
|
||||
$query->setParameter('id', $id);
|
||||
$feed = $query->getResult();
|
||||
|
||||
return $feed[0];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user