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

Next revision
Previous revision
Next revisionBoth sides next revision
activerecord:classhasmany [2015/12/05 02:36] – created mnewnhamactiverecord:classhasmany [2015/12/05 16:02] mnewnham
Line 3: Line 3:
 <WRAP right box> <WRAP right box>
 == Syntax == == Syntax ==
-  bool 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+Globally defines a one-to-many relationship. Once defined, the relationship persists for  the life of the script. 
 +===== Parameters ===== 
 +-------------------------
 ===== Usage ===== ===== Usage =====
 <code php> <code php>
v5/activerecord/classhasmany.txt · Last modified: 2016/01/13 02:15 by mnewnham