How do you organize your fixtures inside a Symfony2 project. Is there a standard you can respect so that when you use the doctrine:fixtures:load --env=environment command, only fixtures related to the environment environment are used ? This could be useful because fixtures for production are very likely to be different from fixtures for test.
How do you organize your fixtures inside a Symfony2 project. Is there a standard
Share
The current fixtures bundle does not handle this.
If you want to load only certain fixtures, you must specify them using the
--fixturesrepeatable option:Anyway, in your tests, I advise you to load your fixtures eagerly, reseting your database before each test.