| Total Complexity | 1 |
| Total Lines | 20 |
| 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 | * @return EntityManager|QueryBuilder |
||
| 24 | */ |
||
| 25 | final protected function createQueryBuilder(string $alias, string $indexBy = null) |
||
| 29 | ; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Returns the related Object Repository. |
||
| 34 | * |
||
| 35 | * @return EntityRepository |
||
| 36 | */ |
||
| 37 | abstract protected function getRepository(); |
||
| 38 | } |
||
| 39 |