[Solar-svn] Revision 2738

pmjones at solarphp.com pmjones at solarphp.com
Fri Sep 7 08:51:19 CDT 2007


branch: Solar_Sql_Model: [FIX] Method countPages() now uses the model alias name, not the table name.



Modified: branches/orm/Solar/Sql/Model.php
===================================================================
--- branches/orm/Solar/Sql/Model.php	2007-09-07 13:47:33 UTC (rev 2737)
+++ branches/orm/Solar/Sql/Model.php	2007-09-07 13:51:18 UTC (rev 2738)
@@ -1063,7 +1063,7 @@
                ->having($params['having'])
                ->setPaging($this->_paging);
         
-        $col = "{$this->_table_name}.{$this->_primary_col}";
+        $col = "{$this->_model_name}.{$this->_primary_col}";
         
         return $select->countPages($col);
     }




More information about the Solar-svn mailing list