Getting Unknown Property: Common\models\user::role

I have downloaded yii2-app-advanced by composer today.

It’s works well.

But when i click the button SIGNUP and input an user name and then submit it, it does not work and throw an error.

The error information is:

"Unknown Property – yii\base\UnknownPropertyException

Getting unknown property: common\models\User::role"

Can you help me?

Thank you.

Basically, you need a ‘role’ field in your table.

For example,

role ENUM ('user', 'admin', 'godmode')

thank you, ORey!

I’ll try it .

I have added a ‘role’ field in my tbl_user and modified ‘create_time’ to ‘create_at’ and modified ‘update_time’ to ‘update_at’.

Then it works again.

Thank you very much, ORey.