Replaced the old migrations with one big cleaner one.

This commit is contained in:
Jan Böhmer 2019-09-02 16:34:53 +02:00
parent 4026f6be3f
commit de6df395f4
11 changed files with 296 additions and 774 deletions

View file

@ -45,7 +45,7 @@ class PartAttachment extends Attachment
/**
*
* @ORM\ManyToOne(targetEntity="App\Entity\Parts\Part", inversedBy="attachments")
* @ORM\JoinColumn(name="element_id", referencedColumnName="id").
* @ORM\JoinColumn(name="element_id", referencedColumnName="id", nullable=false, onDelete="CASCADE").
*/
protected $element;