mirror of
https://github.com/Oreolek/yii2-nested-sets.git
synced 2024-07-01 05:55:00 +03:00
Documentation
This commit is contained in:
parent
d7c198ef33
commit
6286310edf
|
@ -146,13 +146,13 @@ You can get the whole tree using standard AR methods like the following.
|
|||
For single tree per table:
|
||||
|
||||
```php
|
||||
TBD.
|
||||
Category::find()->addOrderBy('lft')->all();
|
||||
```
|
||||
|
||||
For multiple trees per table:
|
||||
|
||||
```php
|
||||
TBD.
|
||||
Category::find()->where('root = ?',array($root_id))->addOrderBy('lft')->all();
|
||||
```
|
||||
|
||||
Modifying a tree
|
||||
|
|
Loading…
Reference in a new issue