@@ -60,9 +60,10 @@ a) ORM Group class implementation
60
60
61
61
.. code-block :: php-annotations
62
62
63
- // src/MyProject/MyBundle/Entity/Group.php
63
+ <?php
64
+ // src/AppBundle/Entity/Group.php
64
65
65
- namespace MyProject\MyBundle \Entity;
66
+ namespace AppBundle \Entity;
66
67
67
68
use FOS\UserBundle\Entity\Group as BaseGroup;
68
69
use Doctrine\ORM\Mapping as ORM;
@@ -102,9 +103,10 @@ b) MongoDB Group class implementation
102
103
103
104
.. code-block :: php
104
105
105
- // src/MyProject/MyBundle/Document/Group.php
106
+ <?php
107
+ // src/AppBundle/Document/Group.php
106
108
107
- namespace MyProject\MyBundle \Document;
109
+ namespace AppBundle \Document;
108
110
109
111
use FOS\UserBundle\Document\Group as BaseGroup;
110
112
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
@@ -125,9 +127,10 @@ c) CouchDB Group class implementation
125
127
126
128
.. code-block :: php
127
129
128
- // src/MyProject/MyBundle/CouchDocument/Group.php
130
+ <?php
131
+ // src/AppBundle/CouchDocument/Group.php
129
132
130
- namespace MyProject\MyBundle \CouchDocument;
133
+ namespace AppBundle \CouchDocument;
131
134
132
135
use FOS\UserBundle\Document\Group as BaseGroup;
133
136
use Doctrine\ODM\CouchDB\Mapping\Annotations as CouchDB;
@@ -155,9 +158,10 @@ a) ORM User-Group mapping
155
158
156
159
.. code-block :: php-annotations
157
160
158
- // src/MyProject/MyBundle/Entity/User.php
161
+ <?php
162
+ // src/AppBundle/Entity/User.php
159
163
160
- namespace MyProject\MyBundle \Entity;
164
+ namespace AppBundle \Entity;
161
165
162
166
use FOS\UserBundle\Entity\User as BaseUser;
163
167
use Doctrine\ORM\Mapping as ORM;
@@ -176,7 +180,7 @@ a) ORM User-Group mapping
176
180
protected $id;
177
181
178
182
/**
179
- * @ORM\ManyToMany(targetEntity="MyProject\MyBundle \Entity\Group")
183
+ * @ORM\ManyToMany(targetEntity="AppBundle \Entity\Group")
180
184
* @ORM\JoinTable(name="fos_user_user_group",
181
185
* joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")},
182
186
* inverseJoinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id")}
@@ -237,9 +241,10 @@ b) MongoDB User-Group mapping
237
241
238
242
.. code-block :: php
239
243
240
- // src/MyProject/MyBundle/Document/User.php
244
+ <?php
245
+ // src/AppBundle/Document/User.php
241
246
242
- namespace MyProject\MyBundle \Document;
247
+ namespace AppBundle \Document;
243
248
244
249
use FOS\UserBundle\Document\User as BaseUser;
245
250
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
@@ -253,7 +258,7 @@ b) MongoDB User-Group mapping
253
258
protected $id;
254
259
255
260
/**
256
- * @MongoDB\ReferenceMany(targetDocument="MyProject\MyBundle \Document\Group")
261
+ * @MongoDB\ReferenceMany(targetDocument="AppBundle \Document\Group")
257
262
*/
258
263
protected $groups;
259
264
}
@@ -263,9 +268,10 @@ c) CouchDB User-Group mapping
263
268
264
269
.. code-block :: php
265
270
266
- // src/MyProject/MyBundle/CouchDocument/User.php
271
+ <?php
272
+ // src/AppBundle/CouchDocument/User.php
267
273
268
- namespace MyProject\MyBundle \CouchDocument;
274
+ namespace AppBundle \CouchDocument;
269
275
270
276
use FOS\UserBundle\Document\User as BaseUser;
271
277
use Doctrine\ODM\CouchDB\Mapping\Annotations as CouchDB;
@@ -281,7 +287,7 @@ c) CouchDB User-Group mapping
281
287
protected $id;
282
288
283
289
/**
284
- * @CouchDB\ReferenceMany(targetDocument="MyProject\MyBundle \CouchDocument\Group")
290
+ * @CouchDB\ReferenceMany(targetDocument="AppBundle \CouchDocument\Group")
285
291
*/
286
292
protected $groups;
287
293
}
0 commit comments