Ejemplo n.º 1
0
 public function getAllProviderOrderStatusName()
 {
     return $this->hasMany(\app\modules\autoparts\models\ProviderStateCode::className(), ['provider_id' => 'provider_id']);
 }
Ejemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProvider()
 {
     return $this->hasOne(ProviderStateCode::className(), ['provider_id' => 'provider_id', 'status_code' => 'provider_state_id']);
 }