mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 11:24:31 +02:00
Replaced the old migrations with one big cleaner one.
This commit is contained in:
parent
4026f6be3f
commit
de6df395f4
11 changed files with 296 additions and 774 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue