ReferenceRepository depends on ObjectManager interface:
|
public function __construct(ObjectManager $manager) |
But futher in code getUnitOfWork method is called:
|
$uow = $this->manager->getUnitOfWork(); |
\Doctrine\Persistence\ObjectManager interface doesn't contain this method. But \Doctrine\ORM\EntityManagerInterface contains.
Could you tell me, why there is a dependency on ObjectManager instead of EntityManagerInterface?
Thanks!
ReferenceRepositorydepends onObjectManagerinterface:data-fixtures/src/ReferenceRepository.php
Line 67 in 4892c74
But futher in code
getUnitOfWorkmethod is called:data-fixtures/src/ReferenceRepository.php
Line 127 in 4892c74
\Doctrine\Persistence\ObjectManagerinterface doesn't contain this method. But\Doctrine\ORM\EntityManagerInterfacecontains.Could you tell me, why there is a dependency on
ObjectManagerinstead ofEntityManagerInterface?Thanks!