mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
27 lines
563 B
PHP
27 lines
563 B
PHP
<?php
|
|
|
|
namespace Repositories;
|
|
|
|
use Doctrine\ORM\EntityRepository;
|
|
|
|
/**
|
|
* OrderElementRepository
|
|
*
|
|
* This class was generated by the Doctrine ORM. Add your own custom
|
|
* repository methods below.
|
|
*/
|
|
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];
|
|
}
|
|
}
|