ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:tablekeybelongsto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
activerecord:tablekeybelongsto [2015/12/05 16:58] mnewnhamv5:activerecord:tablekeybelongsto [2016/01/13 02:15] (current) – ↷ Page moved from activerecord:tablekeybelongsto to v5:activerecord:tablekeybelongsto mnewnham
Line 25: Line 25:
 ==== $foreignKey ==== ==== $foreignKey ====
 If, due to database design constraints, the key field in the child table is not named the same as that of the parent table, specify it here. If, due to database design constraints, the key field in the child table is not named the same as that of the parent table, specify it here.
-==== $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 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 ''child'', but the table name is ''children'', the primary key is ch_id and the link between the two tables is children.person_id = person.id: In this example, the class is ''child'', but the table name is ''children'', the primary key is ch_id and the link between the two tables is children.person_id = person.id:
v5/activerecord/tablekeybelongsto.txt · Last modified: 2016/01/13 02:15 by mnewnham