You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have fixtures in both, but Doctrine seem to use only the default entity manager for both.
$ console doctrine:fixtures:load -n
> purging database
> loading FirstBundle\DataFixtures\ORM\LoadEntity1Data
> loading FirstBundle\DataFixtures\ORM\LoadEntity2Data
[...]
> loading SecondBundle\DataFixtures\ORM\LoadEntity3Data
In MappingException.php line 37:
The class 'SecondBundle\Entity\Entity3' was not found
in the chain configured namespaces FirstBundle\Entity
Is there a way to help Doctrine in our fixtures guessing which manager to use ?
This would avoid to have to use this for each distinct entity manager.
I have multiple connections used by multiple entity managers with separate bundles (Symfony 3.4):
I have fixtures in both, but Doctrine seem to use only the default entity manager for both.
Is there a way to help Doctrine in our fixtures guessing which manager to use ?
This would avoid to have to use this for each distinct entity manager.
Maybe there is some simpler way I'm not aware of.
The text was updated successfully, but these errors were encountered: