Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMiOrderDetails()
 {
     return $this->hasMany(MiOrderDetail::className(), ['product_id' => 'product_id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMiOrderDetails()
 {
     return $this->hasMany(MiOrderDetail::className(), ['supplier_id' => 'supplier_id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOrderDetail()
 {
     return $this->hasOne(MiOrderDetail::className(), ['order_detail_id' => 'order_detail_id']);
 }