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() */