Phalcon\Mvc\Model\Behavior\NestedSet::appendTo PHP Method

appendTo() public method

Appends node to target as last child.
public appendTo ( Phalcon\Mvc\ModelInterface $target, array $attributes = null ) : boolean
$target Phalcon\Mvc\ModelInterface the target.
$attributes array list of attributes.
return boolean
    public function appendTo(ModelInterface $target, array $attributes = null)
    {
        // Re-search $target
        $target = $target::findFirst($target->{$this->primaryKey});
        return $this->addNode($target, $target->{$this->rightAttribute}, 1, $attributes);
    }