Answer the question
In order to leave comments, you need to log in
\yii\db\ActiveRecord::tableName() return empty table name after php change?
After updating the php build, there was a problem with AR, it loses all table names. For example, for news var_dump(frontend\models\News::tableName());
it returns now string(5) "{{%}}"
On the last build, php returned string(9) "{{%news}}"
as it should. If you register by hand in the model
public static function tableName()
{
return 'news';
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question