diff --git a/src/Resources/config/doctrine/Media.orm.yml b/src/Resources/config/doctrine/Media.orm.yml index 6147493d5..4e00d5bbc 100644 --- a/src/Resources/config/doctrine/Media.orm.yml +++ b/src/Resources/config/doctrine/Media.orm.yml @@ -38,6 +38,7 @@ BitBag\SyliusCmsPlugin\Entity\Media: joinColumns: media_id: referencedColumnName: id + onDelete: CASCADE inverseJoinColumns: section_id: referencedColumnName: id @@ -49,6 +50,7 @@ BitBag\SyliusCmsPlugin\Entity\Media: joinColumns: media_id: referencedColumnName: id + onDelete: CASCADE inverseJoinColumns: product_id: referencedColumnName: id