/**
  * @return \yii\db\ActiveQuery
  */
 public function getDeliveryCarriers()
 {
     return $this->hasMany(DeliveryCarrier::className(), ['product_id' => 'id']);
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCarrier()
 {
     return $this->hasOne(DeliveryCarrier::className(), ['id' => 'carrier_id']);
 }