| 1 | <?php |
||
| 11 | class EventRepository extends \Doctrine\ORM\EntityRepository |
||
| 12 | { |
||
| 13 | public function findByGoogleId($id) |
||
| 14 | { |
||
| 15 | return $this->createQueryBuilder('e') |
||
| 16 | ->andWhere('e.googleId = :id') |
||
| 17 | ->setParameter('id', $id) |
||
| 18 | ->getQuery() |
||
| 19 | ->getSingleResult(); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function selectNotExpiredByUser($user) |
||
| 33 | } |
||
| 34 |