| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | public function getEntityManager() |
||
| 59 | { |
||
| 60 | if ($this->entityManager) { |
||
| 61 | return $this->entityManager; |
||
| 62 | } |
||
| 63 | |||
| 64 | $serviceManager = ServiceManagerFactory::getServiceManager(); |
||
| 65 | $serviceManager->get('doctrine.entity_resolver.orm_default'); |
||
| 66 | $this->entityManager = $serviceManager->get('doctrine.entitymanager.orm_default'); |
||
| 67 | |||
| 68 | return $this->entityManager; |
||
| 69 | } |
||
| 70 | } |
||
| 71 |