| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function getRepository(EntityManagerInterface $entityManager, $entityName) |
||
| 43 | { |
||
| 44 | $className = $entityManager->getClassMetadata($entityName)->getName(); |
||
| 45 | |||
| 46 | if (isset($this->fqcnToServiceIdMap[$className])) { |
||
| 47 | return $this->container->get($this->fqcnToServiceIdMap[$className]); |
||
| 48 | } |
||
| 49 | |||
| 50 | return $this->fallback->getRepository($entityManager, $entityName); |
||
| 51 | } |
||
| 52 | } |
||
| 53 |