Skip to content

Left/right/depth attributes not updated on the record after update #114

Open
@brandonkelly

Description

@brandonkelly

NestedSetsBehavior will set the lft, rgt, and depth attributes on the record when it’s a new record, but it won’t update those attributes after performing an operation on an existing record.

Example:

$a->prependTo($b);
echo $a->lft;

I would expect that to output the new lft attribute value, but it will output the old one.

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