Skip to content

Commit c7803d3

Browse files
committed
updated Doctrine mapping paths
1 parent 27008f6 commit c7803d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

book/doctrine/orm.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ write mapping information with annotations, XML, or YAML:
108108
109109
.. code-block:: yaml
110110
111-
# Acme/HelloBundle/Resources/config/Acme.HelloBundle.Entity.User.orm.dcm.yml
111+
# Acme/HelloBundle/Resources/config/doctrine/Acme.HelloBundle.Entity.User.orm.dcm.yml
112112
Acme\HelloBundle\Entity\User:
113113
type: entity
114114
table: user
@@ -124,7 +124,7 @@ write mapping information with annotations, XML, or YAML:
124124
125125
.. code-block:: xml
126126
127-
<!-- Acme/HelloBundle/Resources/config/Acme.HelloBundle.Entity.User.orm.dcm.xml -->
127+
<!-- Acme/HelloBundle/Resources/config/doctrine/Acme.HelloBundle.Entity.User.orm.dcm.xml -->
128128
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
129129
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
130130
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
@@ -325,11 +325,11 @@ follow these conventions:
325325
example ``Acme/HelloBundle/Entity/``.
326326

327327
2. If you are using xml, yml or php mapping put all your configuration files
328-
into the "Resources/config/" directory suffixed with ``orm.dcm.xml``,
328+
into the "Resources/config/doctrine/" directory suffixed with ``orm.dcm.xml``,
329329
``orm.dcm.yml`` or ``orm.dcm.php`` respectively.
330330

331-
3. Annotations is assumed if an ``Entity/`` but no "Resources/config/"
332-
directory is found.
331+
3. Annotations is assumed if an ``Entity/`` but no
332+
"Resources/config/doctrine/" directory is found.
333333

334334
The following configuration shows a bunch of mapping examples:
335335

0 commit comments

Comments
 (0)