Skip to content

Feature: load seeder in order #1289

Description

@vmonjaret

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions