/**
  * @return \yii\db\ActiveQuery
  */
 public function getSaleShops()
 {
     return $this->hasMany(SaleShop::className(), ['payment_default_id' => 'id']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSaleShops()
 {
     return $this->hasMany(SaleShop::className(), ['pricelist_id' => 'id']);
 }
Example #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getShop()
 {
     return $this->hasOne(SaleShop::className(), ['id' => 'shop_id']);
 }