Fixed doctrine mapping.

This commit is contained in:
Jan Böhmer 2020-05-17 20:49:43 +02:00
parent cad9534b04
commit 34760a068c

View file

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