Exemplo n.º 1
0
 public function getTask()
 {
     return $this->hasOne(Tasks::className(), ['id' => 'task_id']);
 }