You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then runing php bin/console doctrine:fixtures:load --group=DevFixtures --no-interaction caused error
In SymfonyFixturesLoader.php line 148:
Fixture "App\DataFixtures\InitFixtures" was declared as a dependency for fixture "App\DataFixtures\DevFixtures", but it was not included in any of the loaded fixture groups.
The text was updated successfully, but these errors were encountered:
GSpecDrum
changed the title
Possibility to include dependent fixtures into Fixture Groups
Possibility to add fixtures into dependent group
Jul 14, 2022
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
The text was updated successfully, but these errors were encountered: