Ejemplo n.º 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getLogisticStrategy()
 {
     return $this->hasOne(LogisticStrategy::className(), ['id' => 'logistic_strategy_id']);
 }
Ejemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getLogisticStrategies()
 {
     return $this->hasMany(LogisticStrategy::className(), ['supplier_id' => 'id']);
 }