This commit is contained in:
2023-04-12 13:14:37 +03:00
parent c65b7d10cc
commit 8bc601aa6a
43 changed files with 3005 additions and 795 deletions

View File

@@ -3,6 +3,7 @@
namespace common\models;
use Yii;
use yii\helpers\ArrayHelper;
/**
* This is the model class for table "position".
@@ -46,4 +47,9 @@ class Position extends \yii\db\ActiveRecord
{
return $this->hasMany(UserCard::class, ['position_id' => 'id']);
}
public static function getList()
{
return ArrayHelper::map(self::find()->all(), 'id', 'name');
}
}