Closed GSpecDrum closed 5 months ago
This is something I'd like to see too, IIRC at some point it was possible to load fixtures by name, and it would be great to have an ability to load fixtures by including all dependencies.
@GSpecDrum @oleg-andreyev I've raised a PR to add this feature as I've stumbled upon this error and with a large fixture set it's quite a frustrating limitation!
I have strange behaviour when attempting to load fixture group by class name with dependent fixtures.
Example: Let's create two fixture classes:
Then runing
php bin/console doctrine:fixtures:load --group=DevFixtures --no-interaction
caused errorBecause InitFixtures doesn't have such group.
It would be great if dependent fixtures will be added automatically into groups, which from they depend. Like it is made in main library - https://github.com/doctrine/data-fixtures/blob/1.5.x/lib/Doctrine/Common/DataFixtures/Loader.php#L171-L177