requests
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user