[Solar-svn] Revision 3157
pmjones at solarphp.com
pmjones at solarphp.com
Wed May 14 09:02:48 CDT 2008
Solar_Sql_Model: [CHG] In method _fixModelName(), the model name now takes on the table name when the table name is available. Thanks, Kilbride, for the report.
Modified: trunk/Solar/Sql/Model.php
===================================================================
--- trunk/Solar/Sql/Model.php 2008-05-14 13:58:11 UTC (rev 3156)
+++ trunk/Solar/Sql/Model.php 2008-05-14 14:02:48 UTC (rev 3157)
@@ -2089,6 +2089,8 @@
if (! $this->_model_name) {
if ($this->_inherit_model) {
$this->_model_name = $this->_inherit_model;
+ } elseif ($this->_table_name) {
+ $this->_model_name = $this->_table_name;
} else {
// get the part after the last Model_ portion
$pos = strpos($this->_class, 'Model_');
More information about the Solar-svn
mailing list