-
Notifications
You must be signed in to change notification settings - Fork 26
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
h4cc_alice_fixtures.manager not honouring mapping configuration #20
Comments
Thanks for that hint, will get on it. |
@h4cc I tried to fix it somehow but I'm quite new to Symfony and lack the |
… in #20. Removed the the simple configureable object_manager value. SchemaTools will now drop and recreate the schemas from _all_ configured enitity managers.
@garciall have a look at the feature branch. |
@garciall Does it work? You can tes the branch using this composer requirement:
|
@h4cc I tried this yesterday and it works smoothly! I just found another issue, I have some fixtures which are related using a join table which uses associationKey for its primary key. Imagine having Item <> ItemProduct <> Product. If I try to load all the fixtures at the same time, i.e. Item, Product and then ItemProduct it fails on the last cause it lacks an autogenerated id for the first two, is there any way to force a flush between fixtures loading? |
You could seperate it into two sets, there will be a flush after each one. |
Ok! I'll try that 👍 |
Thank you for testing, will prepare this for a v0.4 release. |
… in #20. Removed the the simple configureable object_manager value. SchemaTools will now drop and recreate the schemas from _all_ configured enitity managers.
Released with 0.4: |
When I try to persist some fixtures using:
It fails with:
Because is not honouring the config.yml mapping configuration when you have multiple entity managers.
I think this is a good read on that:
http://php-and-symfony.matthiasnoback.nl/2014/05/inject-the-manager-registry-instead-of-the-entity-manager/
The text was updated successfully, but these errors were encountered: