registration fix
This commit is contained in:
@ -72,4 +72,9 @@ class Status extends \yii\db\ActiveRecord
|
||||
{
|
||||
return $this->hasMany(UserCard::class, ['status' => 'id']);
|
||||
}
|
||||
|
||||
public static function getByName($name)
|
||||
{
|
||||
return Status::find()->where(['name' => $name])->one()->id ?? false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user