1 | <?php |
||
10 | class ORMRepository |
||
11 | { |
||
12 | /** |
||
13 | * @var |
||
14 | */ |
||
15 | protected $manager; |
||
16 | |||
17 | /** |
||
18 | * @var |
||
19 | */ |
||
20 | protected $class; |
||
21 | |||
22 | /** |
||
23 | * @param ObjectManager $manager |
||
24 | * @param $class |
||
25 | */ |
||
26 | public function __construct(ObjectManager $manager, $class) |
||
31 | |||
32 | /** |
||
33 | * @return mixed |
||
34 | */ |
||
35 | public function getClassName() |
||
39 | |||
40 | /** |
||
41 | * @return mixed |
||
42 | */ |
||
43 | protected function getManager() |
||
47 | |||
48 | /** |
||
49 | * @param string $alias |
||
50 | * @param null $indexBy |
||
51 | * @return \Doctrine\ORM\QueryBuilder |
||
52 | */ |
||
53 | protected function getQueryBuilder($alias = 'p', $indexBy = null) |
||
60 | } |
||
61 |