I've been testing the Doctrine migrations in symfony and I finally got them to work, but I noticed that these migrations only update the database. The forms and the model are not updated as I expected...
Is this normal? If it's normal, is there a way to update the model with the changes made to the db?
This is normal.
To update the model/forms/filters etc, you can run the
./symfony doctrine:build-all
task.
Whilst in development, you are probably loading fixtures into your database, so will load them with doctrine:data-load (or use the build-all-reload task).
But once your app is in production, you obviously won't want to be ditching all the data every time you change the db schema. This is where migrations come in.
My process is: