Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 28 lines (20 sloc) 1.24 kB
edb7950 @beberlei Getting STarted: Code, Model, Database first
beberlei authored
1 Getting Started: Database First
2 ===============================
3
4 .. note:: *Development Workflows*
5
6 When you :doc:`Code First <getting-started>`, you
7 start with developing Objects and then map them onto your database. When
8 you :doc:`Model First <getting-started-models>`, you are modelling your application using tools (for
9 example UML) and generate database schema and PHP code from this model.
46be811 @saltybeagle Minor spelling correction & grammatical formatting
saltybeagle authored
10 When you have a :doc:`Database First <getting-started-database>`, you already have a database schema
b5e1125 @michaelperrin Fix typo in the "Getting started database" tutorial
michaelperrin authored
11 and generate the corresponding PHP code from it.
edb7950 @beberlei Getting STarted: Code, Model, Database first
beberlei authored
12
13 .. note::
14
15 This getting started guide is in development.
16
17 Development of new applications often starts with an existing database schema.
18 When the database schema is the starting point for your application, then
19 development is said to use the *Database First* approach to Doctrine.
20
46be811 @saltybeagle Minor spelling correction & grammatical formatting
saltybeagle authored
21 In this workflow you would modify the database schema first and then
edb7950 @beberlei Getting STarted: Code, Model, Database first
beberlei authored
22 regenerate the PHP code to use with this schema. You need a flexible
23 code-generator for this task and up to Doctrine 2.2, the code generator hasn't
24 been flexible enough to achieve this.
25
46be811 @saltybeagle Minor spelling correction & grammatical formatting
saltybeagle authored
26 We spinned off a subproject, Doctrine CodeGenerator, that will fill this gap and
edb7950 @beberlei Getting STarted: Code, Model, Database first
beberlei authored
27 allow you to do *Database First* development.
Something went wrong with that request. Please try again.