I am getting this Error:
Exception 'yii\base\UnknownPropertyException' with message 'Setting unknown property: common\models\User::identityClass'
The error seems to be in the configuration:
'controllerNamespace' => 'console\controllers', 'components' => [ 'log' => [ 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'levels' => ['error', 'warning', 'info'], ], ], ], 'user' => [ 'identityClass' => 'common\models\User', // ISSUE SEEMS TO BE HERE 'class' => 'common\models\User', 'enableAutoLogin' => true, ], 'authManager' => [ 'class' => 'yii\rbac\PhpManager', 'defaultRoles' => ['admin','editor','user'], // here define your roles 'itemFile' => '@console/data/items.php', //Default path to items.php | NEW CONFIGURATIONS 'assignmentFile' => '@console/data/assignments.php', //Default path to assignments.php | NEW CONFIGURATIONS 'ruleFile' => '@console/data/rules.php', //Default path to rules.php | NEW CONFIGURATIONS ], ],
But disabling that line is not working. It appears another error. It is weird because it was not happening before. But I am assuming that it is because I am using the User model, which I was not using before, but still, everything else is working. If you require any other information to help me, please just ask me.
I am not sure of what it is so I don’t really know what else might help solve this problem.