3 namespace Rapsys\AirBundle\Repository
;
6 * ApplicationRepository
8 class ApplicationRepository
extends \Doctrine\ORM\EntityRepository
{
10 * Find session by session and user
12 * @param $session The session
13 * @param $user The user
15 public function findOneBySessionUser($session, $user) {
17 $ret = $this->getEntityManager()
18 ->createQuery('SELECT a FROM Rapsys\AirBundle\Entity\Application a WHERE (a.session = :session AND a.user = :user)')
19 ->setParameter('session', $session)
20 ->setParameter('user', $user)