Skip to content

Difference between parent() and ancestors() is not obvious #40

@fazliddin

Description

@fazliddin

ancestors() works as expected, and logically parent() should be as following:

public function parent()
{
     return $this->ancestors(1);
}

Bun instead, parents is written same as ancestors without depth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions