ActiveRecord::tableName() hardcoded prefix fix

This commit is contained in:
Alexander Kochetov
2014-01-09 06:59:22 +04:00
parent 4609a94dbf
commit dda9fec95e

View File

@ -183,7 +183,7 @@ class ActiveRecord extends BaseActiveRecord
*/
public static function tableName()
{
return 'tbl_' . Inflector::camel2id(StringHelper::basename(get_called_class()), '_');
return static::getDb()->tablePrefix . Inflector::camel2id(StringHelper::basename(get_called_class()), '_');
}
/**