mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
More fixes for the PR
This commit is contained in:
@@ -12,20 +12,4 @@ use Doctrine\ORM\EntityRepository;
|
||||
*/
|
||||
class OrderElementRepository extends EntityRepository
|
||||
{
|
||||
public function findElementsByRecord(\record_adapter $record)
|
||||
{
|
||||
$dql = 'SELECT e
|
||||
FROM Entities\OrderElement e
|
||||
WHERE e.recordId = :record_id';
|
||||
|
||||
$params = array(
|
||||
'record_id' => $record->get_record_id()
|
||||
);
|
||||
|
||||
$query = $this->_em->createQuery($dql);
|
||||
$query->setParameters($params);
|
||||
|
||||
return $query->getResult();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user