Skip to content

Maximum function nesting level error #17

@legendarydrew

Description

@legendarydrew

Hello sir,
With the following code (regardless of what is inside the get()), I get a "Maximum function nesting level of '100' reached, aborting!" error:

$groups = ItemGroup::defaultOrder()->get(['name'])->toTree();
return $groups;

but this code works:

$groups = ItemGroup::defaultOrder()->get()->toTree();
return $groups;

The error appears to be a result of converting the tree to an array.

I've recenty updated Laravel to 4.2, and this issue also occurs with version 1.1. Perhaps I should stick with 4.1 for now?

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