Skip to content

[Symfony] Wrong registry? #1106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
KDederichs opened this issue Oct 16, 2020 · 2 comments
Closed

[Symfony] Wrong registry? #1106

KDederichs opened this issue Oct 16, 2020 · 2 comments

Comments

@KDederichs
Copy link
Contributor

Hey,

I'm trying to write some integration tests atm and I ran into this error:
TypeError: Argument 1 passed to Enqueue\Doctrine\DoctrineConnectionFactoryFactory::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given
Not really sure why since I firstly do not even use the doctrine part of enqueue but I also ran this bundle in other Symfony projects without problems.

I'm running Symfony 5.1.7 (PHP 7.4)
Enqueue-Bundle: 0.10.3
Enqueue-AMPQ/Null: 0.10.4
DoctrineORM: 2.7.3
Doctrine-Bundle: 2.1.2

Any idea what might cause this?

@nivpenso
Copy link
Contributor

nivpenso commented Oct 16, 2020

it caused by the incompatibility of the doctrine/persistence package.
A PR (#1105) for fixing this issue has already merged to the dev repo and now we are waiting for the release to resolve this issue

@makasim
Copy link
Member

makasim commented Oct 16, 2020

Tagged 0.10.6 with the fix

@makasim makasim closed this as completed Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants