Total Complexity | 6 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 46.15% |
Changes | 0 |
1 | <?php namespace Pz\Doctrine\Rest; |
||
7 | class RestRepository extends EntityRepository |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $rootAlias; |
||
13 | |||
14 | /** |
||
15 | * @return \Doctrine\ORM\EntityManager |
||
16 | */ |
||
17 | public function em() |
||
18 | { |
||
19 | return $this->getEntityManager(); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Base root alias for queries. |
||
24 | * |
||
25 | * @return string |
||
26 | */ |
||
27 | 2 | public function alias() |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param RestRequestAbstract $request |
||
44 | * |
||
45 | * @return null|object |
||
46 | * @throws EntityNotFoundException |
||
47 | */ |
||
48 | public function findByIdentifier(RestRequestAbstract $request) |
||
55 | } |
||
56 | } |
||
57 |