mirror of
https://github.com/Oreolek/yii2-nested-sets.git
synced 2024-07-01 05:55:00 +03:00
Documentation fixes
This commit is contained in:
parent
12b4e54958
commit
44d875e191
|
@ -118,7 +118,7 @@ Using `NestedSet::parent()`:
|
|||
|
||||
```php
|
||||
$category = Category::find(9);
|
||||
$parent = $category->parent()->find();
|
||||
$parent = $category->parent()->one();
|
||||
```
|
||||
|
||||
Result:
|
||||
|
@ -132,7 +132,7 @@ Using `NestedSet::prev()` or
|
|||
|
||||
```php
|
||||
$category = Category::find(9);
|
||||
$nextSibling = $category->next()->find();
|
||||
$nextSibling = $category->next()->one();
|
||||
```
|
||||
|
||||
Result:
|
||||
|
|
Loading…
Reference in a new issue