Repository navigation
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:
Posthas 5CommentGetting
Comment's relatedLikeis not allowed since duringhydrate()we found >1CommentPosthas only 1CommentGetting
Comment's relatedLikeis allowed since duringhydrate()we only found 1Commenthence not preventing to lazy loadframework/src/Illuminate/Database/Eloquent/Builder.php
Lines 382 to 395 in d1c3d4f
All reactions