Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | private function getEntityManager(object $data): EntityManagerInterface |
||
37 | { |
||
38 | /** @var EntityManagerInterface $em */ |
||
39 | $em = $this->registry->getManagerForClass($this->getObjectClass($data)); |
||
40 | if (!$em) { |
||
41 | throw ORMInvalidArgumentException::invalidObject(__CLASS__ . '::' . __FUNCTION__, $data); |
||
42 | } |
||
43 | |||
44 | return $em; |
||
45 | } |
||
47 |