Skip to content

Let us specify which relations to load when using withAllRecursive ? #1726

Open
@vesper8

Description

@vesper8

Describe the feature

Right now I want to use withAllRecursive but it's incredibly slow and I believe that's because it loads relationships recursively both up and down.. meaning that it loads all relations including belongsTo and hasMany recursively which creates a recursive loop and crashes my app.

I would like to specify which relations to load recursively so that I only load child relations and ignore parent relations.

Is there any chance you could add this functionality? Or can I already do this by passing a callback to withAll ?

Additional information

  • Would you be willing to help implement this feature?

Final checks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions