Skip to content

Commit 54aa0da

Browse files
committed
Merge branch '4.1' into 4.2
* 4.1: change targetEntity format Less code Wrong function name
2 parents 69f88a3 + e6f65e0 commit 54aa0da

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

best_practices/business-logic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
* )

controller/upload_file.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

form/form_collections.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

reference/constraints/UniqueEntity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy