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