@@ -14,8 +14,8 @@ Add the following to your `app/config/config.yml` file.
1414
1515fos_message :
1616 db_driver : orm
17- thread_class : Acme\MessageBundle \Entity\Thread
18- message_class : Acme\MessageBundle \Entity\Message
17+ thread_class : AppBundle \Entity\Thread
18+ message_class : AppBundle \Entity\Message
1919` ` `
2020
2121[Continue with the installation][]
@@ -25,12 +25,12 @@ Message class
2525
2626` ` ` php
2727<?php
28- // src/Acme/MessageBundle /Entity/Message.php
28+ // src/AppBundle /Entity/Message.php
2929
30- namespace Acme\MessageBundle \Entity;
30+ namespace AppBundle \Entity;
3131
3232use Doctrine\ORM\Mapping as ORM;
33- use Doctrine\Common\Collections\ArrayCollection ;
33+ use Doctrine\Common\Collections\Collection ;
3434use FOS\MessageBundle\Entity\Message as BaseMessage;
3535
3636/**
@@ -47,26 +47,26 @@ class Message extends BaseMessage
4747
4848 /**
4949 * @ORM\ManyToOne(
50- * targetEntity="Acme\MessageBundle \Entity\Thread",
50+ * targetEntity="AppBundle \Entity\Thread",
5151 * inversedBy="messages"
5252 * )
5353 * @var \FOS\MessageBundle\Model\ThreadInterface
5454 */
5555 protected $thread;
5656
5757 /**
58- * @ORM\ManyToOne(targetEntity="Acme\UserBundle \Entity\User")
58+ * @ORM\ManyToOne(targetEntity="AppBundle \Entity\User")
5959 * @var \FOS\MessageBundle\Model\ParticipantInterface
6060 */
6161 protected $sender;
6262
6363 /**
6464 * @ORM\OneToMany(
65- * targetEntity="Acme\MessageBundle \Entity\MessageMetadata",
65+ * targetEntity="AppBundle \Entity\MessageMetadata",
6666 * mappedBy="message",
6767 * cascade={"all"}
6868 * )
69- * @var MessageMetadata[]|\Doctrine\Common\Collections\ Collection
69+ * @var MessageMetadata[]|Collection
7070 */
7171 protected $metadata;
7272}
@@ -77,9 +77,9 @@ MessageMetadata class
7777
7878``` php
7979<?php
80- // src/Acme/MessageBundle /Entity/MessageMetadata.php
80+ // src/AppBundle /Entity/MessageMetadata.php
8181
82- namespace Acme\MessageBundle \Entity;
82+ namespace AppBundle \Entity;
8383
8484use Doctrine\ORM\Mapping as ORM;
8585use FOS\MessageBundle\Entity\MessageMetadata as BaseMessageMetadata;
@@ -98,15 +98,15 @@ class MessageMetadata extends BaseMessageMetadata
9898
9999 /**
100100 * @ORM\ManyToOne(
101- * targetEntity="Acme\MessageBundle \Entity\Message",
101+ * targetEntity="AppBundle \Entity\Message",
102102 * inversedBy="metadata"
103103 * )
104104 * @var \FOS\MessageBundle\Model\MessageInterface
105105 */
106106 protected $message;
107107
108108 /**
109- * @ORM\ManyToOne(targetEntity="Acme\UserBundle \Entity\User")
109+ * @ORM\ManyToOne(targetEntity="AppBundle \Entity\User")
110110 * @var \FOS\MessageBundle\Model\ParticipantInterface
111111 */
112112 protected $participant;
@@ -118,12 +118,12 @@ Thread class
118118
119119``` php
120120<?php
121- // src/Acme/MessageBundle /Entity/Thread.php
121+ // src/AppBundle /Entity/Thread.php
122122
123- namespace Acme\MessageBundle \Entity;
123+ namespace AppBundle \Entity;
124124
125125use Doctrine\ORM\Mapping as ORM;
126- use Doctrine\Common\Collections\ArrayCollection ;
126+ use Doctrine\Common\Collections\Collection ;
127127use FOS\MessageBundle\Entity\Thread as BaseThread;
128128
129129/**
@@ -139,27 +139,27 @@ class Thread extends BaseThread
139139 protected $id;
140140
141141 /**
142- * @ORM\ManyToOne(targetEntity="Acme\UserBundle \Entity\User")
142+ * @ORM\ManyToOne(targetEntity="AppBundle \Entity\User")
143143 * @var \FOS\MessageBundle\Model\ParticipantInterface
144144 */
145145 protected $createdBy;
146146
147147 /**
148148 * @ORM\OneToMany(
149- * targetEntity="Acme\MessageBundle \Entity\Message",
149+ * targetEntity="AppBundle \Entity\Message",
150150 * mappedBy="thread"
151151 * )
152- * @var Message[]|\Doctrine\Common\Collections\ Collection
152+ * @var Message[]|Collection
153153 */
154154 protected $messages;
155155
156156 /**
157157 * @ORM\OneToMany(
158- * targetEntity="Acme\MessageBundle \Entity\ThreadMetadata",
158+ * targetEntity="AppBundle \Entity\ThreadMetadata",
159159 * mappedBy="thread",
160160 * cascade={"all"}
161161 * )
162- * @var ThreadMetadata[]|\Doctrine\Common\Collections\ Collection
162+ * @var ThreadMetadata[]|Collection
163163 */
164164 protected $metadata;
165165}
@@ -170,9 +170,9 @@ ThreadMetadata class
170170
171171``` php
172172<?php
173- // src/Acme/MessageBundle /Entity/ThreadMetadata.php
173+ // src/AppBundle /Entity/ThreadMetadata.php
174174
175- namespace Acme\MessageBundle \Entity;
175+ namespace AppBundle \Entity;
176176
177177use Doctrine\ORM\Mapping as ORM;
178178use FOS\MessageBundle\Entity\ThreadMetadata as BaseThreadMetadata;
@@ -191,15 +191,15 @@ class ThreadMetadata extends BaseThreadMetadata
191191
192192 /**
193193 * @ORM\ManyToOne(
194- * targetEntity="Acme\MessageBundle \Entity\Thread",
194+ * targetEntity="AppBundle \Entity\Thread",
195195 * inversedBy="metadata"
196196 * )
197197 * @var \FOS\MessageBundle\Model\ThreadInterface
198198 */
199199 protected $thread;
200200
201201 /**
202- * @ORM\ManyToOne(targetEntity="Acme\UserBundle \Entity\User")
202+ * @ORM\ManyToOne(targetEntity="AppBundle \Entity\User")
203203 * @var \FOS\MessageBundle\Model\ParticipantInterface
204204 */
205205 protected $participant;
0 commit comments