Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProfessions()
 {
     return $this->hasMany(Profession::className(), ['id' => 'profession_id'])->viaTable(ResumeProfession::tableName(), ['resume_id' => 'id']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProfession()
 {
     return $this->hasOne(Profession::className(), ['id' => 'profession_id']);
 }
Example #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProfessions()
 {
     return $this->hasMany(Profession::className(), ['user_id' => 'id']);
 }