Phalcon\Mvc\Model\Behavior\NestedSet::appendTo PHP Метод

appendTo() публичный Метод

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.
Результат 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);
    }