php - Doctrine migrations in symfony don't update model and forms -


I am testing theory broadcast in Symphony and in the end it has got to work, but I noticed These migrations only update the database. Forms and models are not being updated as I expect ...

Is this normal? If this is normal, then is there any way to update the model with changes made to DB?

This is normal.

To update the model / form / filter etc., you

 . / Symfony principle: < 

can work.

During development, you are probably loading in your database, so they will load them with the principle: data load (or use build-all-reload work).

But once your app is in production, you certainly do not want to dig all the data every time you change the DB schema. This is where migrations come.

My process is:

  • Update schema.iml
  • Principles to run: All Build in dev-environment. <
  • Create a migration
  • Do any Dev / Dev on Dev environment.
  • Deploy the code for the output
  • Migration to the production database.

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -