255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Name', ]; } /** * @return \yii\db\ActiveQuery */ public function getTaskActions() { return $this->hasMany(TaskAction::className(), ['task_id' => 'id']); } public static function getList() { return ArrayHelper::map(self::find()->all(), 'id', 'name'); } }