|
85 | 85 |
|
86 | 86 | .. code-block:: yaml |
87 | 87 |
|
88 | | - # Acme/HelloBundle/Resources/config/doctrine/metadata/mongodb/Acme.HelloBundle.Document.User.dcm.yml |
| 88 | + # Acme/HelloBundle/Resources/config/doctrine/Acme.HelloBundle.Document.User.mongodb.yml |
89 | 89 | Acme\HelloBundle\Document\User: |
90 | 90 | type: document |
91 | 91 | collection: user |
|
98 | 98 |
|
99 | 99 | .. code-block:: xml |
100 | 100 |
|
101 | | - <!-- Acme/HelloBundle/Resources/config/doctrine/metadata/mongodb/Acme.HelloBundle.Document.User.dcm.xml --> |
| 101 | + <!-- Acme/HelloBundle/Resources/config/doctrine/Acme.HelloBundle.Document.User.mongodb.xml --> |
102 | 102 | <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" |
103 | 103 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
104 | 104 | xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping |
@@ -154,7 +154,7 @@ Now, use your document and manage its persistent state with Doctrine: |
154 | 154 |
|
155 | 155 | public function deleteAction($id) |
156 | 156 | { |
157 | | - $dm = $this->get('doctrine.odm.entity_manager'); |
| 157 | + $dm = $this->get('doctrine.odm.mongodb.document_manager'); |
158 | 158 | $user = $dm->createQuery('find all from AcmeHelloBundle:User where id = ?', $id); |
159 | 159 | $dm->remove($user); |
160 | 160 | $dm->flush(); |
@@ -271,13 +271,13 @@ can control. The following configuration options exist for a mapping: |
271 | 271 | To avoid having to configure lots of information for your mappings you should |
272 | 272 | follow these conventions: |
273 | 273 |
|
274 | | -1. Put all your entities in a directory ``Document/`` inside your bundle. For |
| 274 | +1. Put all your documents in a directory ``Document/`` inside your bundle. For |
275 | 275 | example ``Acme/HelloBundle/Document/``. |
276 | 276 | 2. If you are using xml, yml or php mapping put all your configuration files |
277 | | - into the ``Resources/config/doctrine/metadata/doctrine/mongodb/`` directory |
278 | | - suffixed with dcm.xml, dcm.yml or dcm.php respectively. |
| 277 | + into the ``Resources/config/doctrine/`` directory |
| 278 | + suffixed with mongodb.xml, mongodb.yml or mongodb.php respectively. |
279 | 279 | 3. Annotations is assumed if an ``Document/`` but no |
280 | | - ``Resources/config/doctrine/metadata/mongodb/`` directory is found. |
| 280 | + ``Resources/config/doctrine/`` directory is found. |
281 | 281 |
|
282 | 282 | The following configuration shows a bunch of mapping examples: |
283 | 283 |
|
|
0 commit comments