Restore Data When Rebuilding Model in Symfony

Whenever you rebuild your model, you have to loose your old data in Symfony. You will need to rebuild model whenever you change or add something new to your schema. If you are learning Symfony then you may not bother to loose data and may not feel too much for for backup/span> of data. But some data are necessary for running your application. Example can be many drop down lists you will provide for selection to users.

    Commands for doing it:
  • php symfony propel-dump-data appName testdata.yml
  • php symfony cc
  • php symfony propel-build-all-load appName