v5:activerecord:tablekeybelongsto
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
activerecord:tablekeybelongsto [2015/12/05 16:58] – mnewnham | activerecord:tablekeybelongsto [2015/12/05 16:59] – mnewnham | ||
---|---|---|---|
Line 25: | Line 25: | ||
==== $foreignKey ==== | ==== $foreignKey ==== | ||
If, due to database design constraints, | If, due to database design constraints, | ||
- | ==== $foreignClass | + | ==== $parentPrimaryKey ==== |
- | 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 | + | FIXME |
+ | ==== $parentClass | ||
+ | If the class name for the parent | ||
===== 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