[Solar-svn] Revision 2769

pmjones at solarphp.com pmjones at solarphp.com
Sun Sep 23 15:02:54 CDT 2007


branch: Solar_Sql_Model_Catalog: [CHG] In method _fixRelated(), now adds keys for 'native_table' and 'native_alias' for sake of completeness.


Modified: branches/orm/Solar/Sql/Model/Catalog.php
===================================================================
--- branches/orm/Solar/Sql/Model/Catalog.php	2007-09-21 17:13:09 UTC (rev 2768)
+++ branches/orm/Solar/Sql/Model/Catalog.php	2007-09-23 20:02:54 UTC (rev 2769)
@@ -692,6 +692,9 @@
      * 
      * @todo Add `through*` keys to the definition list above.
      * 
+     * @todo Add 'native_table' and 'native_alias' values? Then *everything*
+     * is in the array, no need for $this->_whatever.
+     * 
      */
     protected function _fixRelated($model)
     {
@@ -871,6 +874,8 @@
                 'foreign_inherit_col' => $opts['foreign_inherit_col'],
                 'foreign_inherit_val' => $opts['foreign_inherit_val'],
                 'foreign_primary_col' => $foreign->_primary_col,
+                'native_table'        => $model->_table_name,
+                'native_alias'        => $model->_model_name,
                 'native_col'          => $opts['native_col'],
                 'through'             => $opts['through'],
                 'through_table'       => $opts['through_table'],




More information about the Solar-svn mailing list