예제 #1
0
파일: Job.php 프로젝트: kevinaud/Jobocracy
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCounty()
 {
     return $this->hasOne(County::className(), ['id' => 'county_id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCounties()
 {
     return $this->hasMany(County::className(), ['state_id' => 'id']);
 }