Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upsertGraph() calls $beforeUpdate() on empty relates #2605

Closed
lehni opened this issue Feb 12, 2024 · 0 comments · Fixed by #2607
Closed

upsertGraph() calls $beforeUpdate() on empty relates #2605

lehni opened this issue Feb 12, 2024 · 0 comments · Fixed by #2607

Comments

@lehni
Copy link
Collaborator

lehni commented Feb 12, 2024

If the relation is the only thing changing on a related model instance, then the instance itself should not receive $beforeUpdate & co. calls, because the only update that occurs is of the relation on the parent model, the instance itself is not touched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant