1
0
Fork 0
mirror of https://github.com/Oreolek/yii2-nested-sets.git synced 2024-07-03 06:55:00 +03:00

Documentation fixes

This commit is contained in:
Alexander Kochetov 2013-05-06 12:01:52 +04:00
parent 12b4e54958
commit 44d875e191

View file

@ -118,7 +118,7 @@ Using `NestedSet::parent()`:
```php ```php
$category = Category::find(9); $category = Category::find(9);
$parent = $category->parent()->find(); $parent = $category->parent()->one();
``` ```
Result: Result:
@ -132,7 +132,7 @@ Using `NestedSet::prev()` or
```php ```php
$category = Category::find(9); $category = Category::find(9);
$nextSibling = $category->next()->find(); $nextSibling = $category->next()->one();
``` ```
Result: Result: