Is there any place in Symfony reserved for me to provide scripts or to run a class that populates the database with the initial information I need?
The ideal would be during the first run and every update. If it exists how do I use it?
Is there any place in Symfony reserved for me to provide scripts or to run a class that populates the database with the initial information I need?
The ideal would be during the first run and every update. If it exists how do I use it?
There is a feature in Doctrine called Doctrine Migrations. You can version your database and even add an initial load by running the "migrate" command. There is a Symfony2 Bundle for this: link
I hope I have helped.