Files
Phraseanet/lib/Alchemy/Phrasea/Model/Repositories/WebhookEventRepository.php
Nicolas Le Goff 66fa05f4ee Fix CS
2014-07-17 15:17:04 +02:00

33 lines
714 B
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2014 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Model\Repositories;
use Doctrine\ORM\EntityRepository;
/**
* WebhookEventRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class WebhookEventRepository extends EntityRepository
{
public function findUnprocessedEvents()
{
$qb = $this->createQueryBuilder('e');
$qb->where($qb->expr()->eq('e.processed', $qb->expr()->literal(false)));
return $qb->getQuery()->getResult();
}
}