v5:activerecord:classbelongsto
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
activerecord:classbelongsto [2015/12/05 15:02] – created mnewnham | v5:activerecord:classbelongsto [2016/01/13 02:15] – ↷ Page moved from activerecord:classbelongsto to v5:activerecord:classbelongsto mnewnham | ||
---|---|---|---|
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
void ADODB_Active_Record:: | void ADODB_Active_Record:: | ||
- | | + | |
- | | + | |
| | ||
| | ||
Line 13: | Line 13: | ||
===== Description ===== | ===== Description ===== | ||
You can define the parent of the current object using '' | You can define the parent of the current object using '' | ||
+ | ===== Parameters ===== | ||
+ | ==== $parentClass ==== | ||
+ | The parent table in the relationship | ||
+ | ==== $childClass ==== | ||
+ | The child table in the relationship | ||
+ | ==== $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 ===== | ||
<code php> | <code php> |
v5/activerecord/classbelongsto.txt · Last modified: 2019/01/01 01:31 by mnewnham