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

Published 3rd February 2008

Symfony has been around for quite some time now and most developers have their preferred 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.