1 | <?php |
||
13 | trait DoctrineAwareTrait |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var Registry |
||
18 | */ |
||
19 | protected $doctrineRegistry; |
||
20 | |||
21 | |||
22 | /** |
||
23 | * @param Registry $doctrineRegistry |
||
24 | */ |
||
25 | public function setDoctrineRegistry(Registry $doctrineRegistry) |
||
29 | |||
30 | /** |
||
31 | * Shortcut to return the Doctrine EntityManager |
||
32 | * |
||
33 | * @return Registry |
||
34 | * |
||
35 | * @throws LogicException If DoctrineBundle is not available |
||
36 | */ |
||
37 | protected function getDoctrine() : Registry |
||
45 | } |
||
46 |