Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getObject1()
 {
     return $this->hasOne(Profile::className(), ['user_id' => 'object_id']);
 }
Esempio n. 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProfile()
 {
     return $this->hasOne(Profile::className(), ['user_id' => 'id']);
 }
Esempio n. 3
0
 /**
  * Get enrollee application.
  * @return Profile
  */
 public function getApplication()
 {
     return $this->hasOne(Profile::className(), ['id_person' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProfiles()
 {
     return $this->hasMany(Profile::className(), ['employee_id' => 'employee_id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProfiles()
 {
     return $this->hasMany(Profile::className(), ['precinct_id' => 'precinct_id']);
 }