@@ -46,8 +46,8 @@ necessary configuration is to specify the bundle name which contains your entiti
46
46
As Doctrine provides transparent persistence for PHP objects, it works with
47
47
any PHP class::
48
48
49
- // Application /HelloBundle/Entity/User.php
50
- namespace Application \HelloBundle\Entity;
49
+ // Sensio /HelloBundle/Entity/User.php
50
+ namespace Sensio \HelloBundle\Entity;
51
51
52
52
class User
53
53
{
@@ -84,8 +84,8 @@ write mapping information with annotations, XML, or YAML:
84
84
85
85
.. code-block :: php
86
86
87
- // Application /HelloBundle/Entity/User.php
88
- namespace Application \HelloBundle\Entity;
87
+ // Sensio /HelloBundle/Entity/User.php
88
+ namespace Sensio \HelloBundle\Entity;
89
89
90
90
/**
91
91
* @orm:Entity
@@ -95,7 +95,7 @@ write mapping information with annotations, XML, or YAML:
95
95
/**
96
96
* @orm:Id
97
97
* @orm:Column(type="integer")
98
- * @orm:GeneratedValue(strategy="IDENTITY ")
98
+ * @orm:GeneratedValue(strategy="AUTO ")
99
99
*/
100
100
protected $id;
101
101
@@ -107,31 +107,31 @@ write mapping information with annotations, XML, or YAML:
107
107
108
108
.. code-block :: yaml
109
109
110
- # Application /HelloBundle/Resources/config/doctrine/metadata/orm/Application .HelloBundle.Entity.User.dcm.yml
111
- Application \HelloBundle\Entity\User :
110
+ # Sensio /HelloBundle/Resources/config/doctrine/metadata/orm/Sensio .HelloBundle.Entity.User.dcm.yml
111
+ Sensio \HelloBundle\Entity\User :
112
112
type : entity
113
113
table : user
114
114
id :
115
115
id :
116
116
type : integer
117
117
generator :
118
- strategy : IDENTITY
118
+ strategy : AUTO
119
119
fields :
120
120
name :
121
121
type : string
122
122
length : 50
123
123
124
124
.. code-block :: xml
125
125
126
- <!-- Application /HelloBundle/Resources/config/doctrine/metadata/orm/Application .HelloBundle.Entity.User.dcm.xml -->
126
+ <!-- Sensio /HelloBundle/Resources/config/doctrine/metadata/orm/Sensio .HelloBundle.Entity.User.dcm.xml -->
127
127
<doctrine-mapping xmlns =" http://doctrine-project.org/schemas/orm/doctrine-mapping"
128
128
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
129
129
xsi : schemaLocation =" http://doctrine-project.org/schemas/orm/doctrine-mapping
130
130
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" >
131
131
132
- <entity name =" Application \HelloBundle\Entity\User" table =" user" >
132
+ <entity name =" Sensio \HelloBundle\Entity\User" table =" user" >
133
133
<id name =" id" type =" integer" column =" id" >
134
- <generator strategy =" IDENTITY " />
134
+ <generator strategy =" AUTO " />
135
135
</id >
136
136
<field name =" name" column =" name" type =" string" length =" 255" />
137
137
</entity >
@@ -154,10 +154,10 @@ the following commands:
154
154
155
155
Eventually, use your entity and manage its persistent state with Doctrine::
156
156
157
- // Application /HelloBundle/Controller/UserController.php
158
- namespace Application \HelloBundle\Controller;
157
+ // Sensio /HelloBundle/Controller/UserController.php
158
+ namespace Sensio \HelloBundle\Controller;
159
159
160
- use Application \HelloBundle\Entity\User;
160
+ use Sensio \HelloBundle\Entity\User;
161
161
162
162
class UserController extends Controller
163
163
{
@@ -200,7 +200,7 @@ update your development database schema without blowing away everything and
200
200
losing your existing data. So first lets just add a new property to our ``User ``
201
201
entity::
202
202
203
- namespace Application \HelloBundle\Entities;
203
+ namespace Sensio \HelloBundle\Entities;
204
204
205
205
/** @orm:Entity */
206
206
class User
0 commit comments