khepin/KhepinYamlFixturesBundle — Issue #2: Allow more complex file ordering
Author: khepin
Created: 2012-01-31 13:22:46+00:00
State: open

So first I'm certainly not willing to remove the requirement for users to order fixture files by themselves. This was the case in Doctrine1 but it meant a lot of work behind the scenes and I have bad memories of waiting in front of my screen for fixtures to load.

The case for this is the following:

I have 3 entities:
- BundleA\EntityOne
- BundleA\EntityTwo
- BundleB\EntityThree

That need to be loaded in the following order:

- BundleA\EntityOne
- BundleB\EntityThree
- BundleA\EntityTwo

This is currently not possible. And I am still unsure it's a good thing to do. Right now this seems to me like the bundles would need to be refactored in a better way. However if there's a strong case for this I'll see what's possible. This would also mean a much more complex configuration and I'm not really happy about that ;-)