registration fix

This commit is contained in:
apuc committed 2024-02-05 23:58:48 +03:00
1 parent 5cfd591140
commit eb1abd41e5
13 files changed
+83 -10

No files matched your search

+5
View File
@@ -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;
}
}