Using Symfony to start the database automatically when deploying the project

1

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?

    
asked by anonymous 23.06.2014 / 14:26

1 answer

2

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.

    
28.06.2014 / 05:54