getting-started-models.rst 1.1 KB

123456789101112131415161718192021222324
  1. Getting Started: Model 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>`, then 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. There are applications when you start with a high-level description of the
  13. model using modelling tools such as UML. Modelling tools could also be Excel,
  14. XML or CSV files that describe the model in some structured way. If your
  15. application is using a modelling tool, then the development workflow is said to
  16. be a *Model First* approach to Doctrine2.
  17. In this workflow you always change the model description and then regenerate
  18. both PHP code and database schema from this model.