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

Improve lazyLoadingViolationReporter helper #709

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

stayallive
Copy link
Collaborator

As mentioned by @devfrey (#678 (comment)) Laravel itself does check if the model reported for a lazy loading violation wasn't just created (or not even created) before throwing the exception so we should add those checks too to prevent reporting.

@stayallive stayallive requested a review from cleptric June 4, 2023 19:52
@stayallive stayallive changed the title Improve lazyLoadingViolationReporter() Improve lazyLoadingViolationReporter helper Jun 4, 2023
@stayallive stayallive merged commit 46fc4e4 into master Jun 5, 2023
19 checks passed
@stayallive stayallive deleted the improve-lazyLoadingViolationReporter branch June 5, 2023 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants