The expression return $this->getEntityM...>getObjectClass($data)) returns the type Doctrine\Persistence\Mapping\ClassMetadata which includes types incompatible with the type-hinted return Doctrine\ORM\Mapping\ClassMetadata.
Loading history...
45
}
46
47
7
private function getEntityManager(object $data): EntityManagerInterface
48
{
49
7
if (!$this->registry) {
50
throw new BadMethodCallException('initRegistry should be called first. Registry property does not exist');