Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit f08eea5

Browse files
authored
Include the general document mapping in the config
1 parent e1fafe4 commit f08eea5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

cookbook/database/create_new_project_phpcr_odm.rst

+27
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ content repository.
105105
odm:
106106
auto_mapping: true
107107
auto_generate_proxy_classes: "%kernel.debug%"
108+
mappings:
109+
App:
110+
mapping: true
111+
type: annotation
112+
dir: '%kernel.root_dir%/Document'
113+
alias: App
114+
prefix: App\Document\
115+
is_bundle: false
108116
109117
.. code-block:: xml
110118
@@ -120,6 +128,15 @@ content repository.
120128
<odm auto-mapping="true"
121129
auto-generate-proxy-classes="%kernel.debug%"
122130
/>
131+
132+
<mapping name="App"
133+
mapping="true"
134+
type="annotation"
135+
dir="%kernel.root_dir%/Document"
136+
alias="App"
137+
prefix="App\Document\"
138+
is_bundle="false"
139+
/>
123140
</config>
124141
</container>
125142
@@ -135,6 +152,16 @@ content repository.
135152
'odm' => array(
136153
'auto_mapping' => true,
137154
'auto_generate_proxy_classes' => '%kernel.debug%',
155+
'mappings' => [
156+
'App' => [
157+
'mapping' => true,
158+
'type' => 'annotation',
159+
'dir' => '%kernel.root_dir%/Document',
160+
'alias' => 'App',
161+
'prefix' => 'App\Document\',
162+
'is-bundle' => false,
163+
],
164+
],
138165
),
139166
));
140167

0 commit comments

Comments
 (0)