Skip to content

Incompatibility with doctrine/doctrine-bundle v2 #984

@likeuntomurphy

Description

@likeuntomurphy

The enqueue/enqueue package is incompatible with Doctrine bundle v2 when used with Symfony because Symfony\Bridge\Doctrine\RegistryInterface is no longer aliased to the doctrine service (https://github.com/doctrine/DoctrineBundle/blob/master/UPGRADE-2.0.md#service-aliases).

Argument 1 passed to Enqueue\Doctrine\DoctrineConnectionFactoryFactory::__construct() must be an instance of Symfony\Bridge\Doctrine\RegistryInterface, instance of Doctrine\Bundle\DoctrineBundle\Registry given

I downgraded the Doctrine bundle to 1.6, but then the ServiceEntityRepository class from the v2 Doctrine bundle is unavailable, and I am relying on it.

I don’t know what the milestones are for the enqueue package, so I don’t really know what the exact solution is to maintain BC. For the time being, I am planning on forking the repo and changing the typehint from Symfony\Bridge\Doctrine\RegistryInterface to Doctrine\Common\Persistence\ManagerRegistry.

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