K
K
knowledge2019-12-04 22:17:00
symfony
knowledge, 2019-12-04 22:17:00

How is data preloaded into the database in symfony?

Often, for the application to work, you need to have preloaded data in the database In laravel
there is a seed for these purposes, and I met it in other frameworks
In symfony, as I understand it, there is no such thing
I decided to use fixtures, but what, it’s very convenient, I can say ideally
, when I tried to execute doctrine:fixtures:load on the production server and I was rejected, spitting out that this command is not available in the prod environment ... I had to temporarily change the environment ...
So, how do you load predefined data?
Really in migration manually to register INSERT INTO????

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question