examples:builder:hasmany_relation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
examples:builder:hasmany_relation [2021/04/11 19:05]
pdsci-admin [Step 3: Extend the parent controller]
examples:builder:hasmany_relation [2021/04/11 19:06] (current)
pdsci-admin [Step 4: Announce the relation to the parent model]
Line 102: Line 102:
 </sxh> </sxh>
 \\ \\
-===== Step 4: Announce the relation to the parent model ===== +===== Step 4: Define the relation within the parent model ===== 
-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 in the parent model. \\+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 in the parent model. \\
 \\ \\
 {{:examples:builder:hasmany-relation-definition.jpg?direct&960|}} {{:examples:builder:hasmany-relation-definition.jpg?direct&960|}}