Мы создали набор фикстур данных, чтобы заполнить базу данных всеми нашими эталонными значениями. Мы также используем DoctrineMigrationsBundle для управления обновлениями схемы. Мы хотели бы инициировать загрузку фикстуры в нашем начальном классе миграции схемы, чтобы система заполнялась до запуска каких-либо дополнительных обновлений схемы.
Я нашел в документации, что вы можете настроить классы миграции с учетом контейнера., но я не могу понять, как перейти от этого к вызову/запуску фикстур данных. Я не нашел хороших ответов на Stackoverflow или через Google. Кто-нибудь сделал это и может указать мне правильное направление? (или у вас есть предложения по лучшему способу управления начальными данными в сочетании с миграцией схемы). Спасибо.
Это использует версию Symfony: 2.4