/** * @return \yii\db\ActiveQuery */ public function getStatusHistory() { return $this->hasOne(StatusHistory::className(), ['id' => 'status_history_id']); }