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