yii2mod / yii2-comments

Comments module for Yii2
MIT License
158 stars 63 forks source link

Change tableName Comment to comment #29

Closed rahulk-k closed 7 years ago

rahulk-k commented 7 years ago


class CommentModel extends ActiveRecord
{
    /**
     * @var null|array|ActiveRecord[] Comment children
     */
    protected $_children;

    /**
     * Declares the name of the database table associated with this AR class.
     *
     * @return string the table name
     */
    public static function tableName()
    {
        return '{{%Comment}}'; // change Comment to comment
    }
?>
You should keep your table name as lower case. Because in Windows the case sensitive of table never change. Once you put the script in Linux it 'll change all to lower case.
ihorchepurnyi commented 7 years ago

We have plans about this, but now I don't have a time for all extensions.

ihorchepurnyi commented 7 years ago

Resolved by commit 11f3317