Is your feature request related to a problem? Please describe.
It would be cool to not care about the order to load the seeds. Something similar exist with Symfony, see https://symfony.com/bundles/DoctrineFixturesBundle/current/index.html#loading-the-fixture-files-in-order
Describe the solution you'd like
The best solution would be to have a method like getDependencies that would refer to seed that are required for the current seeder. After that build a tree in order to play the seeders with the right order.
Describe alternatives you've considered
For now the only solution I see is to expose a single seeder file marked as main that orchestrate the call to my others seeder
Additional context
DoctrineFixtureBundle : https://symfony.com/bundles/DoctrineFixturesBundle/current/index.html#loading-the-fixture-files-in-order
Is your feature request related to a problem? Please describe.
It would be cool to not care about the order to load the seeds. Something similar exist with Symfony, see https://symfony.com/bundles/DoctrineFixturesBundle/current/index.html#loading-the-fixture-files-in-order
Describe the solution you'd like
The best solution would be to have a method like
getDependenciesthat would refer to seed that are required for the current seeder. After that build a tree in order to play the seeders with the right order.Describe alternatives you've considered
For now the only solution I see is to expose a single seeder file marked as main that orchestrate the call to my others seeder
Additional context
DoctrineFixtureBundle : https://symfony.com/bundles/DoctrineFixturesBundle/current/index.html#loading-the-fixture-files-in-order