Closed phatnt93 closed 2 years ago
Hmm... i think is not related with models, because ::update() method is not on stdClass. However, if you want to delete child elements, you can use foreignKey in relation... or in DB - with index and foreign key.
Thanks.
It does not work with relation (index and index). But work with relation (index and foreign key).
parent[index] code [index] cate_code [index]
Questions? Forum: https://phalcon.io/forum or Discord: https://phalcon.io/discord
Describe the bug [Model] When use delete, update method from result of relationship in afterDelete event. It's not working. But check delete, update method still exists in object result
To Reproduce
Steps to reproduce the behavior:
Expected behavior Use delete, update method.
Screenshots Declare relationship for category childs, post-category map
afterDelete event in model
Error when delete category then delete child categories
Details