getting-started-database.rst 1.2 KB

123456789101112131415161718192021222324252627
  1. Getting Started: Database First
  2. ===============================
  3. .. note:: *Development Workflows*
  4. When you :doc:`Code First <getting-started>`, you
  5. start with developing Objects and then map them onto your database. When
  6. you :doc:`Model First <getting-started-models>`, you are modelling your application using tools (for
  7. example UML) and generate database schema and PHP code from this model.
  8. When you have a :doc:`Database First <getting-started-database>`, you already have a database schema
  9. and generate the corresponding PHP code from it.
  10. .. note::
  11. This getting started guide is in development.
  12. Development of new applications often starts with an existing database schema.
  13. When the database schema is the starting point for your application, then
  14. development is said to use the *Database First* approach to Doctrine.
  15. In this workflow you would modify the database schema first and then
  16. regenerate the PHP code to use with this schema. You need a flexible
  17. code-generator for this task and up to Doctrine 2.2, the code generator hasn't
  18. been flexible enough to achieve this.
  19. We spinned off a subproject, Doctrine CodeGenerator, that will fill this gap and
  20. allow you to do *Database First* development.