/** * @return \yii\db\ActiveQuery */ public function getTaskComment() { return $this->hasOne(TaskComment::className(), ['id' => 'task_comment_id']); }
/** * @return \yii\db\ActiveQuery */ public function getTaskComments() { return $this->hasMany(TaskComment::className(), ['task_id' => 'id']); }