Skip to content

Why ObjectManager instead of EntityManagerInterface? #429

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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