Skip to content

Auto removal child object with morphed relation #360

Answered by roxblnfk
allsilaevex asked this question in Q&A
Discussion options

You must be logged in to vote

Please note, the ORM will not automatically trigger the delete operation for related entities and will rely on foreign key rules set in the database.

Morphed relation can't have FK. By the reason you should delete childs automatically.

BTW I recommend you remake morphed relations to STI/JTI

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by allsilaevex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants