Ejemplo n.º 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPurchaseOrders()
 {
     return $this->hasMany(PurchaseOrder::className(), ['pricelist_id' => 'id']);
 }
Ejemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPurchaseOrders()
 {
     return $this->hasMany(PurchaseOrder::className(), ['payment_term_id' => 'id']);
 }
Ejemplo n.º 3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOrder()
 {
     return $this->hasOne(PurchaseOrder::className(), ['id' => 'order_id']);
 }
Ejemplo n.º 4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPurchaseOrders()
 {
     return $this->hasMany(PurchaseOrder::className(), ['attention' => 'id']);
 }