Using Symfony to start the database automatically when deploying the project

Asked

Viewed 153 times

1

Is there any place in Symfony reserved for me to provide scripts or run a class that populates the database with the initial information I need?

The ideal would be during the first run and each update. If it exists as I use?

  • 1

    What you are looking for is called Migrations, Symfony uses Doctrine as Object Relational Mapper, if you are using Doctrine you can use Bundle http://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html

1 answer

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.