Symfony: How Do You Keep Your Model and Database in Sync?


Go to Frontpage Next Article

Symfony has been around for quite some time now and most developers have their prefered way of doing things - time to ask a question that has been floating around for a very long time:

How do you keep your model and database in sync?

A) You build your database in some other tools (e.g. phpMyAdmin) and run propel-build-schema followed by propel-build-model.

B) You write a schema.yml/xml file and run propel-build-all to generate the model, create and insert the sql.

Please state your opinion (or maybe a even better way) in the comments below.


Published February 3, 2008 • Tagged as database, php, symfony


Comments

blog comments powered by Disqus