コード例 #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
ファイル: ResPartner.php プロジェクト: hendri30/OpenPrint
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPurchaseOrders()
 {
     return $this->hasMany(PurchaseOrder::className(), ['attention' => 'id']);
 }