예제 #1
0
파일: User.php 프로젝트: vab777/marts.id_be
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEmployee()
 {
     return $this->hasOne(MiEmployee::className(), ['employee_id' => 'employee_id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMiEmployees()
 {
     return $this->hasMany(MiEmployee::className(), ['position_id' => 'position_id']);
 }