v5:activerecord:tablekeybelongsto
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
activerecord:tablekeybelongsto [2015/12/05 15:18] – created 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 ===== | ||
- | 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.1449325099.txt.gz · Last modified: 2017/04/21 11:20 (external edit)