v5:activerecord:tablekeybelongsto
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
activerecord:tablekeybelongsto [2015/12/05 15:20] – mnewnham | v5:activerecord:tablekeybelongsto [2016/01/13 02:15] (current) – ↷ Page moved from activerecord:tablekeybelongsto to v5:activerecord:tablekeybelongsto 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, | ||
+ | ==== $parentPrimaryKey ==== | ||
+ | FIXME | ||
+ | ==== $parentClass ==== | ||
+ | If the class name for the parent table differs from that of the child, 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.1449325206.txt.gz · Last modified: 2017/04/21 11:20 (external edit)