Skip to content

Why ObjectManager instead of EntityManagerInterface? #429

@aivchen

Description

@aivchen

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions