ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:classhasmany

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
Next revisionBoth sides next revision
activerecord:classhasmany [2015/12/05 15:53] mnewnhamactiverecord:classhasmany [2015/12/05 16:02] mnewnham
Line 4: Line 4:
 == Syntax == == Syntax ==
   void ADODB_Active_Record::ClassHasMany(   void ADODB_Active_Record::ClassHasMany(
-      string $class,  +    string $class,  
-      string $relation,  +    string $relation,  
-      optional string $foreignKey = ' ', +    optional string $foreignKey = '', 
-      optional string $foreignClass = 'ADODB_Active_Record' +    optional string $foreignClass = 'ADODB_Active_Record' 
-      )+  )
 </WRAP> </WRAP>
 +------------------------------
 ===== Description ===== ===== Description =====
-Globally defines a one-to-many relationship. Once defined, the relationship is maintained for the life of the script.+Globally defines a one-to-many relationship. Once defined, the relationship persists for  the life of the script. 
 +===== Parameters =====
 ------------------------- -------------------------
 ===== Usage ===== ===== Usage =====
v5/activerecord/classhasmany.txt · Last modified: 2016/01/13 02:15 by mnewnham