1 | <?php |
||
6 | class Invitation extends AbstractMapper |
||
7 | { |
||
8 | public function findByUser($user) |
||
9 | { |
||
10 | return $this->getEntityRepository()->findBy(array('user'=>$user)); |
||
11 | } |
||
12 | |||
13 | public function findByHost($user) |
||
14 | { |
||
15 | return $this->getEntityRepository()->findBy(array('host'=>$user)); |
||
16 | } |
||
17 | |||
18 | public function findByRequestKey($key) |
||
19 | { |
||
20 | return $this->getEntityRepository()->findBy(array('requestKey'=>$key)); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @return \Heineken\Entity\Invitation |
||
25 | */ |
||
26 | public function findByGame($game) |
||
30 | |||
31 | public function getEntityRepository() |
||
35 | } |
||
36 |