Skip to content

Wrong hook invoked #9432

Answered by dcousens
plap979 asked this question in Questions
Discussion options

You must be logged in to vote

If you call updateTruck, the Truck.hooks.afterOperation hook will be called.

No Trailer hooks will be called, as no operation transpires for the Trailer list.

Sorry, I missed the crucial part where db.foreignKey: true is set.
This mismatched behaviour of the hooks is something we should look into.

Re-opened the issue as #9433 (GitHub won't let me re-open the previous issue after moving this)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dcousens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #9431 on December 12, 2024 22:33.