| 1 | <?php |
||
| 11 | class CustomerRepository extends \Doctrine\ORM\EntityRepository |
||
| 12 | { |
||
| 13 | public function findUsernameByApiKey($param){ |
||
| 14 | return $this->createQueryBuilder('c') |
||
| 15 | ->select('c.username, c.id') |
||
| 16 | ->where('c.apiKey =: param') |
||
| 17 | ->setParameter(':param', $param) |
||
| 18 | ->getQuery() |
||
| 19 | ->getResult(); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function findUserByFacebook($param) |
||
| 31 | } |
||
| 32 |