/** * @return \yii\db\ActiveQuery */ public function getPersonals() { return $this->hasMany(Personal::className(), ['unit' => 'unitcode']); }
/** * @return \yii\db\ActiveQuery */ public function getPersonal0() { return $this->hasOne(Personal::className(), ['id' => 'personal']); }
/** * @return \yii\db\ActiveQuery */ public function getApplicantName() { return $this->hasOne(Personal::className(), ['id' => 'applicant_name']); }