/** * @return \yii\db\ActiveQuery */ public function getOrders() { return $this->hasMany(Order::className(), ['store_id' => 'store_id']); }
/** * @return \yii\db\ActiveQuery */ public function getOrders() { return $this->hasMany(Order::className(), ['order_status_id' => 'order_status_id']); }
/** * @return \yii\db\ActiveQuery */ public function getOrders() { return $this->hasMany(Order::className(), ['payment_method_id' => 'payment_method_id']); }
/** * @return \yii\db\ActiveQuery */ public function getOrder() { return $this->hasOne(Order::className(), ['order_id' => 'order_id']); }
/** * @return \yii\db\ActiveQuery */ public function getOrders() { return $this->hasMany(Order::className(), ['shipping_method_id' => 'shipping_method_id']); }