Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite6f65e0

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: change targetEntity format Less code Wrong function name
2 parents2191d35 +6bfddac commite6f65e0

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)

[8]ページ先頭

©2009-2025 Movatter.jp