/** * @return \yii\db\ActiveQuery */ public function getObject1() { return $this->hasOne(Profile::className(), ['user_id' => 'object_id']); }
/** * @return \yii\db\ActiveQuery */ public function getProfile() { return $this->hasOne(Profile::className(), ['user_id' => 'id']); }
/** * 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']); }