/** * @return \yii\db\ActiveQuery */ public function getIncidentImages() { return $this->hasMany(IncidentImage::className(), ['file_id' => 'id']); }