Closed bayusuwarninghadi closed 9 years ago
How to make sibling between a root models?
$model = new Category(); $model->name = 'new category'; $after = $this->findModel(1); $model->insertAfter($after);
it will throw
throw new Exception('Can not create a node when the target node is root.');
Multiple roots are independent due to nested sets nature. Use single root mode if you need siblings for nodes, etc.
How to make sibling between a root models?
it will throw