Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
examples:builder:hasmany_relation [2021/04/05 15:37] pdsci-admin [Step 4: Announce the relation to the parent model] |
examples:builder:hasmany_relation [2021/04/11 19:06] (current) pdsci-admin [Step 4: Announce the relation to the parent model] |
||
|---|---|---|---|
| Line 84: | Line 84: | ||
| public $implement = [' | public $implement = [' | ||
| ' | ' | ||
| - | ' | + | ' |
| | | ||
| public $listConfig = ' | public $listConfig = ' | ||
| Line 102: | Line 102: | ||
| </ | </ | ||
| \\ | \\ | ||
| - | ===== Step 4: Announce | + | ===== Step 4: Define |
| - | To make the parent model able to work with the relation, the type of the relation, the name of the relation and the child model have to be announced | + | To make the parent model able to work with the relation, the type of the relation, the name of the relation and the child model have to be defined |
| \\ | \\ | ||
| {{: | {{: | ||
| Line 193: | Line 193: | ||
| label: Reviews | label: Reviews | ||
| view: | view: | ||
| - | form: $/ | ||
| list: $/ | list: $/ | ||
| toolbarButtons: | toolbarButtons: | ||
| manage: | manage: | ||
| form: $/ | form: $/ | ||
| - | | + | |
| ... | ... | ||
| </ | </ | ||