sarvan75 / yii-user-management

Automatically exported from code.google.com/p/yii-user-management
0 stars 0 forks source link

YumProfileComment->tableName not "standard" #104

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It returns the value directly, not like other model classes. It should be 
something like:

    public function tableName()
    {
        if (isset(Yum::module()->profileFieldsTable))
            $this->_tableName = Yum::module()->profileFieldsTable;
        elseif (isset(Yii::app()->modules['user']['profileCommentTable']))
            $this->_tableName = Yii::app()->modules['user']['profileCommentTable'];
        else
            $this->_tableName = '{{profile_comment}}'; // fallback if nothing is set

        return Yum::resolveTableName($this->_tableName,$this->getDbConnection());
    }

Original issue reported on code.google.com by jan...@gmail.com on 17 Jan 2011 at 5:43