This commit is contained in:
apuc committed 2023-04-12 13:14:37 +03:00
1 parent c65b7d10cc
commit 8bc601aa6a
43 files changed
+3005 -795

No files matched your search

+6
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');
}
}