1 | <?php |
||
13 | trait DoctrineAwareTrait |
||
14 | { |
||
15 | /** |
||
16 | * @var Registry |
||
17 | */ |
||
18 | protected $doctrineRegistry; |
||
19 | |||
20 | public function setDoctrineRegistry(Registry $doctrineRegistry) |
||
24 | |||
25 | /** |
||
26 | * Shortcut to return the Doctrine EntityManager. |
||
27 | * |
||
28 | * @throws LogicException If DoctrineBundle is not available |
||
29 | */ |
||
30 | protected function getDoctrine() : Registry |
||
38 | } |
||
39 |