v5:activerecord:tablekeybelongsto
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
activerecord:tablekeybelongsto [2015/12/05 15:20] – mnewnham | activerecord:tablekeybelongsto [2015/12/05 16:58] – mnewnham | ||
---|---|---|---|
Line 12: | Line 12: | ||
) | ) | ||
</ | </ | ||
+ | ----------------------------------- | ||
===== Description ===== | ===== Description ===== | ||
This function is uses if the child table differs from the convention that the child table name is the plural of the child class name or the primary key is not ' | This function is uses if the child table differs from the convention that the child table name is the plural of the child class name or the primary key is not ' | ||
+ | ===== Parameters ===== | ||
+ | |||
+ | ==== $childTable ==== | ||
+ | The child table in the relationship | ||
+ | ==== $childKey ==== | ||
+ | FIXME | ||
+ | ==== $relationName ==== | ||
+ | FIXME | ||
+ | ==== $foreignKey ==== | ||
+ | If, due to database design constraints, | ||
+ | ==== $foreignClass ==== | ||
+ | If the class name for the child table differs from that of the parent, for example there has been some extension of methods, specify it here | ||
===== Usage ===== | ===== Usage ===== | ||
In this example, the class is '' | In this example, the class is '' |
v5/activerecord/tablekeybelongsto.txt · Last modified: 2016/01/13 02:15 by mnewnham