/** * @return \yii\db\ActiveQuery */ public function getMiOrders() { return $this->hasMany(MiOrder::className(), ['delivery_time_id' => 'delivery_time_id']); }
/** * @return \yii\db\ActiveQuery */ public function getMiOrders() { return $this->hasMany(MiOrder::className(), ['payment_channel_id' => 'payment_channel_id']); }
/** * @return \yii\db\ActiveQuery */ public function getMiOrders() { return $this->hasMany(MiOrder::className(), ['customer_id' => 'customer_id']); }
/** * @return \yii\db\ActiveQuery */ public function getOrder() { return $this->hasOne(MiOrder::className(), ['order_id' => 'order_id']); }