Commit dda9fec9 by Alexander Kochetov

ActiveRecord::tableName() hardcoded prefix fix

parent 4609a94d
...@@ -183,7 +183,7 @@ class ActiveRecord extends BaseActiveRecord ...@@ -183,7 +183,7 @@ class ActiveRecord extends BaseActiveRecord
*/ */
public static function tableName() public static function tableName()
{ {
return 'tbl_' . Inflector::camel2id(StringHelper::basename(get_called_class()), '_'); return static::getDb()->tablePrefix . Inflector::camel2id(StringHelper::basename(get_called_class()), '_');
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment