Total Complexity | 1 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | trait EntityManagerTrait |
||
19 | { |
||
20 | /** |
||
21 | * Creates a new QueryBuilder instance that is prepopulated for this entity name. |
||
22 | * |
||
23 | * @param string $alias |
||
24 | * @param string $indexBy The index for the from |
||
25 | * |
||
26 | * @return QueryBuilder|EntityManager |
||
27 | */ |
||
28 | final protected function createQueryBuilder(string $alias, string $indexBy = null) |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Returns the related Object Repository. |
||
36 | * |
||
37 | * @return EntityRepository |
||
38 | */ |
||
39 | abstract protected function getRepository(); |
||
40 | } |
||
41 |