You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Please fill in the actual values from your environment - check Contao Manager or use composer show)
Key
Value
Comments
PHP version:
7.2.2
Contao version:
4.4.41
MetaModels version:
2.1.4
Installed MetaModels packages:
All
DCG version:
2.1.3
Issue description
The database is inconsistend when you delete an item that is referenced in another item. There is no "delete cascade", so the relation is still stored in tl_metamodel_tag_relation.
Steps to reproduce
Have an MetaModel A and B, where A has a tags attribute that references B. Delete one item of MetaModel B that is referenced in an Item of MetaModel A.
Describe the behaviour of the application
The relation in tl_metamodel_tag_relation is not deleted.
Describe the expected behaviour
The relation in tl_metamodel_tag_relation is deleted
The text was updated successfully, but these errors were encountered:
bezin
changed the title
Deleting an item causes inconistend database state, when referenced in other MetaModel
Deleting an item causes inconistend database state, when referenced in other Item
Jul 29, 2019
Checklist before I submit this issue report
I confirm that:
My environment is:
(Please fill in the actual values from your environment - check Contao Manager or use
composer show
)Issue description
The database is inconsistend when you delete an item that is referenced in another item. There is no "delete cascade", so the relation is still stored in tl_metamodel_tag_relation.
Steps to reproduce
Have an MetaModel A and B, where A has a tags attribute that references B. Delete one item of MetaModel B that is referenced in an Item of MetaModel A.
Describe the behaviour of the application
The relation in tl_metamodel_tag_relation is not deleted.
Describe the expected behaviour
The relation in tl_metamodel_tag_relation is deleted
The text was updated successfully, but these errors were encountered: