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