...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<tree name="directories" model="directory" joinField="fileSystem" /> |
Model directory must have at least these three fields (name of the field fileSystem must match tree's joinField):
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<belongsTo name="fileSystem" model="fileSystem" required="true" />
<hasMany name="children" model="directory" joinField="parent" cascade="delete" copyable="true" />
<belongsTo name="parent" model="directory" />
|