From 34760a068c688cf960075c05577b7d3caa5225be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 17 May 2020 20:49:43 +0200 Subject: [PATCH] Fixed doctrine mapping. --- src/Entity/Parts/PartLot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/Parts/PartLot.php b/src/Entity/Parts/PartLot.php index 73d7d2d6..67234d73 100644 --- a/src/Entity/Parts/PartLot.php +++ b/src/Entity/Parts/PartLot.php @@ -114,7 +114,7 @@ class PartLot extends AbstractDBElement implements TimeStampableInterface, Named /** * @var Part The part that is stored in this lot - * @ORM\ManyToOne(targetEntity="Part") + * @ORM\ManyToOne(targetEntity="Part", inversedBy="partLots") * @ORM\JoinColumn(name="id_part", referencedColumnName="id", nullable=false, onDelete="CASCADE") * @Assert\NotNull() */