File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ looking for mapping information::
198198
199199 /**
200200 * @ORM\OneToMany(
201- * targetEntity="Comment",
201+ * targetEntity="App\Entity\ Comment",
202202 * mappedBy="post",
203203 * orphanRemoval=true
204204 * )
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ logic to a separate service::
241241 $fileName = md5(uniqid()).'.'.$file->guessExtension();
242242
243243 try {
244- $file->move($this->getTargetDir (), $fileName);
244+ $file->move($this->getTargetDirectory (), $fileName);
245245 } catch (FileException $e) {
246246 // ... handle exception if something happens during file upload
247247 }
Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ you will learn about next!).
468468 // ...
469469
470470 /**
471- * @ORM\ManyToMany(targetEntity="Tag", cascade={"persist"})
471+ * @ORM\ManyToMany(targetEntity="App\Entity\ Tag", cascade={"persist"})
472472 */
473473 protected $tags;
474474
@@ -480,7 +480,7 @@ you will learn about next!).
480480 # ...
481481 oneToMany :
482482 tags :
483- targetEntity : Tag
483+ targetEntity : App\Entity\ Tag
484484 cascade : [persist]
485485
486486 .. code-block :: xml
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ Consider this example:
218218 class Service
219219 {
220220 /**
221- * @ORM\ManyToOne(targetEntity="Host")
221+ * @ORM\ManyToOne(targetEntity="App\Entity\ Host")
222222 */
223223 public $host;
224224
You can’t perform that action at this time.
0 commit comments