[Solar-svn] Revision 3177

pmjones at solarphp.com pmjones at solarphp.com
Tue May 27 11:35:34 CDT 2008


Solar_Sql_Model_Related_HasMany: [ADD] Property $_fetch_object to tell the fetchObject() method to return a collection.


Modified: trunk/Solar/Sql/Model/Related/HasMany.php
===================================================================
--- trunk/Solar/Sql/Model/Related/HasMany.php	2008-05-27 16:34:53 UTC (rev 3176)
+++ trunk/Solar/Sql/Model/Related/HasMany.php	2008-05-27 16:35:34 UTC (rev 3177)
@@ -20,6 +20,19 @@
 {
     /**
      * 
+     * When calling fetchObject(), return this kind of result object.
+     * 
+     * Typically 'record' or 'collection'.
+     * 
+     * @var string
+     * 
+     * @see fetchObject()
+     * 
+     */
+    protected $_fetch_object = 'collection';
+    
+    /**
+     * 
      * When the native model is doing a select and an eager-join is requested
      * for this relation, this method modifies the select to add the eager
      * join.




More information about the Solar-svn mailing list