Baum\Node::ancestorsAndSelf PHP 메소드

ancestorsAndSelf() 공개 메소드

Instance scope which targes all the ancestor chain nodes including the current one.
public ancestorsAndSelf ( ) : Builder
리턴 Illuminate\Database\Eloquent\Builder
    public function ancestorsAndSelf()
    {
        return $this->newNestedSetQuery()->where($this->getLeftColumnName(), '<=', $this->getLeft())->where($this->getRightColumnName(), '>=', $this->getRight());
    }