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\ClassMetadataInfo.
Loading history...
43
}
44
45
7
private function getEntityManager(object $data): EntityManagerInterface
46
{
47
7
if (!$this->registry) {
48
throw new BadMethodCallException('initRegistry should be called first. Registry property does not exist');