Add third party application webhook event

This commit is contained in:
Nicolas Le Goff
2014-06-23 17:48:42 +02:00
parent 1645d914af
commit 0d040519f3
26 changed files with 1106 additions and 195 deletions

View File

@@ -0,0 +1,33 @@
<?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 Alchemy\Phrasea\Model\Entities\WebhookEvent;
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();
}
}