vendredi 25 novembre 2016

Avoid eager loading when using query builder

I have a model which has $with property set. When I retrieve this entity I got some of relations loaded automatically.

Now I use DB::table('entities') and I don't want to eager load anything. Is there a way to avoid eager loading except using DB::select because it's not convenient to put whereIn constrains in this case?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2fgkIfI
via IFTTT

Aucun commentaire:

Enregistrer un commentaire