You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Sometimes it is hard to find N+1 queries, because relation are lazy loaded.
Describe the solution you'd like
I would be nice, if we have a way to prevent lazyloading. It could be a config parameter or a property on the model like in laravel:
/** * Prevent model relationships from being lazy loaded. * * @param bool $value * @return void */publicstaticfunctionpreventLazyLoading($value = true)
{
static::$modelsShouldPreventLazyLoading = $value;
}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Sometimes it is hard to find N+1 queries, because relation are lazy loaded.
Describe the solution you'd like
I would be nice, if we have a way to prevent lazyloading. It could be a config parameter or a property on the model like in laravel:
The text was updated successfully, but these errors were encountered: