Skip to content

Commit 1633ff0

Browse files
osavchenkojaviereguiluz
authored andcommitted
change targetEntity format
1 parent d72818d commit 1633ff0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

best_practices/business-logic.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ looking for mapping information::
247247

248248
/**
249249
* @ORM\OneToMany(
250-
* targetEntity="Comment",
250+
* targetEntity="App\Entity\Comment",
251251
* mappedBy="post",
252252
* orphanRemoval=true
253253
* )

form/form_collections.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ you will learn about next!).
469469
// ...
470470
471471
/**
472-
* @ORM\ManyToMany(targetEntity="Tag", cascade={"persist"})
472+
* @ORM\ManyToMany(targetEntity="App\Entity\Tag", cascade={"persist"})
473473
*/
474474
protected $tags;
475475
@@ -481,7 +481,7 @@ you will learn about next!).
481481
# ...
482482
oneToMany:
483483
tags:
484-
targetEntity: Tag
484+
targetEntity: App\Entity\Tag
485485
cascade: [persist]
486486
487487
.. code-block:: xml

reference/constraints/UniqueEntity.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Consider this example:
200200
class Service
201201
{
202202
/**
203-
* @ORM\ManyToOne(targetEntity="Host")
203+
* @ORM\ManyToOne(targetEntity="App\Entity\Host")
204204
*/
205205
public $host;
206206

0 commit comments

Comments
 (0)