Skip to content

Commit 962e813

Browse files
committed
updated Doctrine chapter to add the alias in annotations
1 parent 3bf21e6 commit 962e813

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

guides/doctrine/mongodb-odm/configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ can read the annotated mapping information from the doc blocks::
181181

182182
// ...
183183

184-
/** @Document(collection="users") */
184+
/** @mongodb:Document(collection="users") */
185185
class User
186186
{
187-
/** @Id */
187+
/** @mongodb:Id */
188188
protected $id;
189189

190-
/** @String */
190+
/** @mongodb:String */
191191
protected $name;
192192

193193
// ...

guides/doctrine/mongodb-odm/overview.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ example we will use annotations::
2929
namespace Application\HelloBundle\Document;
3030

3131
/**
32-
* @Document(collection="users")
32+
* @mongodb:Document(collection="users")
3333
*/
3434
class User
3535
{
3636
/**
37-
* @Id
37+
* @mongodb:Id
3838
*/
3939
protected $id;
4040

4141
/**
42-
* @String
42+
* @mongodb:String
4343
*/
4444
protected $name;
4545

guides/doctrine/orm/configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ entity::
3535

3636
namespace Application\HelloBundle\Entities;
3737

38-
/** @Entity */
38+
/** @orm:Entity */
3939
class User
4040
{
41-
/** @Column(type="string") */
41+
/** @orm:Column(type="string") */
4242
protected $new;
4343

4444
// ...
@@ -50,4 +50,4 @@ you just need to run the following command:
5050
$ php hello/console doctrine:schema:update
5151

5252
Now your database will be updated and the new column added to the database
53-
table.
53+
table.

guides/doctrine/orm/overview.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,19 @@ write mapping information with annotations, XML, or YAML:
7777
namespace Application\HelloBundle\Entity;
7878
7979
/**
80-
* @Entity
80+
* @orm:Entity
8181
*/
8282
class User
8383
{
8484
/**
85-
* @Id
86-
* @Column(type="integer")
87-
* @GeneratedValue(strategy="IDENTITY")
85+
* @orm:Id
86+
* @orm:Column(type="integer")
87+
* @orm:GeneratedValue(strategy="IDENTITY")
8888
*/
8989
protected $id;
9090
9191
/**
92-
* @Column(type="string", length="255")
92+
* @orm:Column(type="string", length="255")
9393
*/
9494
protected $name;
9595
}

0 commit comments

Comments
 (0)