예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getState0()
 {
     return $this->hasOne(State::className(), ['name' => 'state']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStates()
 {
     return $this->hasMany(State::className(), ['state_country_id' => 'country_id']);
 }
예제 #3
0
파일: User.php 프로젝트: aoopvn/EduSec4.0.0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStates()
 {
     return $this->hasMany(State::className(), ['updated_by' => 'user_id']);
 }
예제 #4
0
파일: Job.php 프로젝트: kevinaud/Jobocracy
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getState()
 {
     return $this->hasOne(State::className(), ['id' => 'state_id']);
 }
예제 #5
0
파일: City.php 프로젝트: aoopvn/EduSec4.0.0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCityState()
 {
     return $this->hasOne(State::className(), ['state_id' => 'city_state_id']);
 }
예제 #6
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEmpPaddState()
 {
     return $this->hasOne(State::className(), ['state_id' => 'emp_padd_state']);
 }