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