This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,14 @@ content repository.
105
105
odm :
106
106
auto_mapping : true
107
107
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
108
116
109
117
.. code-block :: xml
110
118
@@ -120,6 +128,15 @@ content repository.
120
128
<odm auto-mapping =" true"
121
129
auto-generate-proxy-classes =" %kernel.debug%"
122
130
/>
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
+ />
123
140
</config >
124
141
</container >
125
142
@@ -135,6 +152,16 @@ content repository.
135
152
'odm' => array(
136
153
'auto_mapping' => true,
137
154
'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
+ ],
138
165
),
139
166
));
140
167
You can’t perform that action at this time.
0 commit comments