예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStates()
 {
     return $this->hasMany(States::className(), ['idcountry' => 'idcountries']);
 }
예제 #2
0
 public function getState()
 {
     return $this->hasOne(States::className(), ['id' => 'state_id']);
 }
예제 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdstates0()
 {
     return $this->hasOne(States::className(), ['idstates' => 'idstates']);
 }