@@ -60,9 +60,10 @@ a) ORM Group class implementation
6060
6161 .. code-block :: php-annotations
6262
63- // src/MyProject/MyBundle/Entity/Group.php
63+ <?php
64+ // src/AppBundle/Entity/Group.php
6465
65- namespace MyProject\MyBundle \Entity;
66+ namespace AppBundle \Entity;
6667
6768 use FOS\UserBundle\Entity\Group as BaseGroup;
6869 use Doctrine\ORM\Mapping as ORM;
@@ -102,9 +103,10 @@ b) MongoDB Group class implementation
102103
103104.. code-block :: php
104105
105- // src/MyProject/MyBundle/Document/Group.php
106+ <?php
107+ // src/AppBundle/Document/Group.php
106108
107- namespace MyProject\MyBundle \Document;
109+ namespace AppBundle \Document;
108110
109111 use FOS\UserBundle\Document\Group as BaseGroup;
110112 use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
@@ -125,9 +127,10 @@ c) CouchDB Group class implementation
125127
126128.. code-block :: php
127129
128- // src/MyProject/MyBundle/CouchDocument/Group.php
130+ <?php
131+ // src/AppBundle/CouchDocument/Group.php
129132
130- namespace MyProject\MyBundle \CouchDocument;
133+ namespace AppBundle \CouchDocument;
131134
132135 use FOS\UserBundle\Document\Group as BaseGroup;
133136 use Doctrine\ODM\CouchDB\Mapping\Annotations as CouchDB;
@@ -155,9 +158,10 @@ a) ORM User-Group mapping
155158
156159 .. code-block :: php-annotations
157160
158- // src/MyProject/MyBundle/Entity/User.php
161+ <?php
162+ // src/AppBundle/Entity/User.php
159163
160- namespace MyProject\MyBundle \Entity;
164+ namespace AppBundle \Entity;
161165
162166 use FOS\UserBundle\Entity\User as BaseUser;
163167 use Doctrine\ORM\Mapping as ORM;
@@ -176,7 +180,7 @@ a) ORM User-Group mapping
176180 protected $id;
177181
178182 /**
179- * @ORM\ManyToMany(targetEntity="MyProject\MyBundle \Entity\Group")
183+ * @ORM\ManyToMany(targetEntity="AppBundle \Entity\Group")
180184 * @ORM\JoinTable(name="fos_user_user_group",
181185 * joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")},
182186 * inverseJoinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id")}
@@ -237,9 +241,10 @@ b) MongoDB User-Group mapping
237241
238242.. code-block :: php
239243
240- // src/MyProject/MyBundle/Document/User.php
244+ <?php
245+ // src/AppBundle/Document/User.php
241246
242- namespace MyProject\MyBundle \Document;
247+ namespace AppBundle \Document;
243248
244249 use FOS\UserBundle\Document\User as BaseUser;
245250 use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
@@ -253,7 +258,7 @@ b) MongoDB User-Group mapping
253258 protected $id;
254259
255260 /**
256- * @MongoDB\ReferenceMany(targetDocument="MyProject\MyBundle \Document\Group")
261+ * @MongoDB\ReferenceMany(targetDocument="AppBundle \Document\Group")
257262 */
258263 protected $groups;
259264 }
@@ -263,9 +268,10 @@ c) CouchDB User-Group mapping
263268
264269.. code-block :: php
265270
266- // src/MyProject/MyBundle/CouchDocument/User.php
271+ <?php
272+ // src/AppBundle/CouchDocument/User.php
267273
268- namespace MyProject\MyBundle \CouchDocument;
274+ namespace AppBundle \CouchDocument;
269275
270276 use FOS\UserBundle\Document\User as BaseUser;
271277 use Doctrine\ODM\CouchDB\Mapping\Annotations as CouchDB;
@@ -281,7 +287,7 @@ c) CouchDB User-Group mapping
281287 protected $id;
282288
283289 /**
284- * @CouchDB\ReferenceMany(targetDocument="MyProject\MyBundle \CouchDocument\Group")
290+ * @CouchDB\ReferenceMany(targetDocument="AppBundle \CouchDocument\Group")
285291 */
286292 protected $groups;
287293 }
0 commit comments