Skip to content

descendants - Nested Eager Loading doesn't work? #252

Closed
@FilipQL

Description

@FilipQL

As stated in the documentation, descendants can be eagerly loaded:

Node has many descendants

But is it possible to use Nested Eager Loading with descendants?

eloquent_ relationships - laravel - the php framework for web artisans - mozilla firefox 2017-11-10 01 04 31

For example, something like:

        $article->comments()
            ->whereIsRoot()
            ->with('descendants.author')
            ->get();

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