[Solar-svn] Revision 2711
pmjones at solarphp.com
pmjones at solarphp.com
Thu Aug 16 14:07:50 CDT 2007
Branch: Solar_Sql_Model_Catalog: [FIX] When loading relating models, factory them with the same SQL dependency that the catalog itself is using
Modified: branches/orm/Solar/Sql/Model/Catalog.php
===================================================================
--- branches/orm/Solar/Sql/Model/Catalog.php 2007-08-16 19:05:11 UTC (rev 2710)
+++ branches/orm/Solar/Sql/Model/Catalog.php 2007-08-16 19:07:50 UTC (rev 2711)
@@ -242,7 +242,8 @@
// see if it already exists; this also loads from cache if available
if (! $this->exists($class)) {
// cause it to self-register
- Solar::factory($class);
+ // make sure to use the same SQL connection
+ Solar::factory($class, array('sql' => $this->_sql));
// save it in the cache
if ($this->_cache) {
More information about the Solar-svn
mailing list