Skip to content

Nested Eager Loading - Not Supported #72

@NeoMarine

Description

@NeoMarine

I tried to use the cache with nested eager loading, but didn't cache that part of the query:

$query->with(['feedback.profile' => function ($query) {
	//Cache
	$cacheTime = 60;
	$query->remember($cacheTime);
}]);

It does however work with a simple eager loading:

$query->with(['feedback' => function ($query) {
	//Cache
	$cacheTime = 60;
	$query->remember($cacheTime);
}]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions