v5:activerecord:tablekeybelongsto
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
activerecord:tablekeybelongsto [2015/12/05 15:18] – created mnewnham | activerecord:tablekeybelongsto [2015/12/05 16:59] – mnewnham | ||
---|---|---|---|
Line 12: | Line 12: | ||
) | ) | ||
</ | </ | ||
+ | ----------------------------------- | ||
===== Description ===== | ===== Description ===== | ||
- | f 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 '' | ||
<code php> | <code php> | ||
ADODB_Active_Record:: | ADODB_Active_Record:: | ||
</ | </ |
v5/activerecord/tablekeybelongsto.txt · Last modified: 2016/01/13 02:15 by mnewnham