-
Notifications
You must be signed in to change notification settings - Fork 3
Description
hello when I go to delete a gallery in mappics-admin get the following error
There is a ForeignKeyConstraintViolationException for the Doctrine entity associated with "Gallery". Solution: disable the "delete" action for this entity or configure the "cascade={"remove"}" attribute for the related property in the Doctrine entity. Full exception: An exception occurred while executing 'DELETE FROM gallery WHERE id = ?' with params ["7c22edec-c259-4ea3-8ff5-a83a461025e6"]:
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (mp_db.image, CONSTRAINT FK_C53D045F4E7AF8F FOREIGN KEY (gallery_id) REFERENCES gallery (id))
also when i add a folder in /var/galleries doesn't automatically create a gallery in mappics
any help would be greatly appreciated