From a221dffa27b9c287a7bc9e4486f5605b71b2a7f1 Mon Sep 17 00:00:00 2001 From: Oleksandr Savchenko Date: Fri, 23 Nov 2018 00:37:37 +0200 Subject: [PATCH] change targetEntity format --- best_practices/business-logic.rst | 2 +- form/form_collections.rst | 4 ++-- reference/constraints/UniqueEntity.rst | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/best_practices/business-logic.rst b/best_practices/business-logic.rst index 5677c8e0144..4718287ec27 100644 --- a/best_practices/business-logic.rst +++ b/best_practices/business-logic.rst @@ -198,7 +198,7 @@ looking for mapping information:: /** * @ORM\OneToMany( - * targetEntity="Comment", + * targetEntity="App\Entity\Comment", * mappedBy="post", * orphanRemoval=true * ) diff --git a/form/form_collections.rst b/form/form_collections.rst index 970c95a7f27..783dcf785f7 100644 --- a/form/form_collections.rst +++ b/form/form_collections.rst @@ -468,7 +468,7 @@ you will learn about next!). // ... /** - * @ORM\ManyToMany(targetEntity="Tag", cascade={"persist"}) + * @ORM\ManyToMany(targetEntity="App\Entity\Tag", cascade={"persist"}) */ protected $tags; @@ -480,7 +480,7 @@ you will learn about next!). # ... oneToMany: tags: - targetEntity: Tag + targetEntity: App\Entity\Tag cascade: [persist] .. code-block:: xml diff --git a/reference/constraints/UniqueEntity.rst b/reference/constraints/UniqueEntity.rst index 2393ee35075..9b06133e059 100644 --- a/reference/constraints/UniqueEntity.rst +++ b/reference/constraints/UniqueEntity.rst @@ -218,7 +218,7 @@ Consider this example: class Service { /** - * @ORM\ManyToOne(targetEntity="Host") + * @ORM\ManyToOne(targetEntity="App\Entity\Host") */ public $host;