Exemplo n.º 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getResCountryStates()
 {
     return $this->hasMany(ResCountryState::className(), ['country_id' => 'id']);
 }
Exemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getState()
 {
     return $this->hasOne(ResCountryState::className(), ['id' => 'state_id']);
 }