Skip to content
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

Does Factory Muffin supports multiple entity managers? #479

Open
dairlair opened this issue Sep 20, 2021 · 0 comments
Open

Does Factory Muffin supports multiple entity managers? #479

dairlair opened this issue Sep 20, 2021 · 0 comments

Comments

@dairlair
Copy link

I have multiple databases and multiple entity managers. Can I use the factory muffin library? Now I see the error, when I use have(Lion::class) method:

[Doctrine\Persistence\Mapping\MappingException] The class 'App\Entity\Animals\Lion' was not found in the chain configured namespaces App\Entity\Default, Gesdinet\JWTRefreshTokenBundle\Entity

The Lion entity is stored in an additional connection of DBAL, served by the additional entity manager, not default.

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

1 participant