1 | <?php |
||
22 | trait EntityManagerTrait { |
||
23 | |||
24 | /** |
||
25 | * Entity manager. |
||
26 | * |
||
27 | * @var EntityManagerInterface |
||
28 | */ |
||
29 | private $entityManager; |
||
30 | |||
31 | /** |
||
32 | * Get the entity manager. |
||
33 | * |
||
34 | * @return EntityManagerInterface Returns the entity manager. |
||
35 | */ |
||
36 | public function getEntityManager() { |
||
39 | |||
40 | /** |
||
41 | * Set the entity manager. |
||
42 | * |
||
43 | * @param EntityManagerInterface|null $entityManager The entity manager. |
||
44 | */ |
||
45 | protected function setEntityManager(EntityManagerInterface $entityManager = null) { |
||
49 | } |
||
50 |