Inconsistent Model::preventLazyLoading()
for related collections
#41268
Unanswered
juliomotol
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to raise an inconsistent behavior when lazy loading is prevented. Given the ff cases:
Post
has 5Comment
Getting
Comment
's relatedLike
is not allowed since duringhydrate()
we found >1Comment
Post
has only 1Comment
Getting
Comment
's relatedLike
is allowed since duringhydrate()
we only found 1Comment
hence not preventing to lazy loadframework/src/Illuminate/Database/Eloquent/Builder.php
Lines 382 to 395 in d1c3d4f
Beta Was this translation helpful? Give feedback.
All reactions