Load Doctrine Fixtures when using Migrations in Symfony
However, once a project is started, it is often hard to use fixtures because it messes with your data. The trick here is to load only the fixtures you need, only when needed by the migration. This way, a new developer starting with the project could simply run the migrations and have a database ready for testing.
Here is a simple way of loading those fixtures on postUp. You need to pass an array of initialized fixture classes, Doctrine will figure the way to order them by itself.
This is only a proof of concept, it would need some refactoring and testing to be production ready, but you can get the idea.