public insertAfter ( Phalcon\Mvc\ModelInterface $target, array $attributes = null ) : boolean | ||
$target | Phalcon\Mvc\ModelInterface | the target. |
$attributes | array | list of attributes. |
return | boolean |
public function insertAfter(ModelInterface $target, array $attributes = null)
{
return $this->addNode($target, $target->{$this->rightAttribute} + 1, 0, $attributes);
}