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