Hello
I added prefix to all tables "tbl_" and all models are named like "TblAbc".
All things was good, until i run composer update.
My main problem is this:
In User model, i changed "findByUsername" function to "findByEmail" and when i remove "status" from code below, application gives error:
[color="#FF0000"]PHP Fatal Error – yii\base\ErrorException
Class ‘yii\helpers\Security’ not found[/color]
Default code:
public static function findByEmail($email)
{
return static::findOne(['email' => $email, 'status' => self::STATUS_ACTIVE]);
}
Status removed:
public static function findByEmail($email)
{
return static::findOne(['email' => $email]);
}
Please help me to resolve that, and describe about User model.
What structure exactly must User table have ?
Is there user table schema ?
Sorry for my bad english.
Thanks