/** * @get task type */ public function getTaskType() { return $this->hasOne(TaskType::className(), ['id' => 'type_id']); }