From d17c4a2b6f4c7c5fe40984b5b752f5d4b815c97f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Fri, 5 Apr 2019 23:31:48 +0200 Subject: [PATCH] Use the correct target entities for Devices and Supplier children. --- src/Entity/Device.php | 4 ++-- src/Entity/Supplier.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Entity/Device.php b/src/Entity/Device.php index 905b119a..267a09c7 100644 --- a/src/Entity/Device.php +++ b/src/Entity/Device.php @@ -43,12 +43,12 @@ use Doctrine\ORM\Mapping as ORM; class Device extends PartsContainingDBElement { /** - * @ORM\OneToMany(targetEntity="Category", mappedBy="parent") + * @ORM\OneToMany(targetEntity="Device", mappedBy="parent") */ protected $children; /** - * @ORM\ManyToOne(targetEntity="Category", inversedBy="children") + * @ORM\ManyToOne(targetEntity="Device", inversedBy="children") * @ORM\JoinColumn(name="parent_id", referencedColumnName="id") */ protected $parent; diff --git a/src/Entity/Supplier.php b/src/Entity/Supplier.php index 0042baa8..c829d1b4 100644 --- a/src/Entity/Supplier.php +++ b/src/Entity/Supplier.php @@ -43,12 +43,12 @@ use Doctrine\ORM\Mapping as ORM; class Supplier extends Company { /** - * @ORM\OneToMany(targetEntity="Category", mappedBy="parent") + * @ORM\OneToMany(targetEntity="Supplier", mappedBy="parent") */ protected $children; /** - * @ORM\ManyToOne(targetEntity="Category", inversedBy="children") + * @ORM\ManyToOne(targetEntity="Supplier", inversedBy="children") * @ORM\JoinColumn(name="parent_id", referencedColumnName="id") */ protected $parent;