Closed ambroisemaupate closed 5 years ago
Hi,
Is it possible to merge those changes ? :)
Same here, cannot delete blocks.
Can I ask you guys to provide a PR?
Would it be possible to merge this? :)
Can I ask you guys to provide a PR?
hello, here you go: #230
new pr - #236, build passed
Fixed #232
Steps to reproduce:
I suspect this to be due to ORM mapping which misses a
onDelete: CASCADE
onjoinColumn
:https://github.com/BitBagCommerce/SyliusCmsPlugin/blob/master/src/Resources/config/doctrine/Block.orm.yml#L26
You should add
onDelete: CASCADE
onjoinColumn
, Doctrine does not add them by default on joinColumn and inverseJoinColumn if you are changing columns configuration. Here, it’s the missingCASCADE
on joinColumn which is faulty and prevent me to delete a block or a page since they’re linked to a product.