Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEmpMasters()
 {
     return $this->hasMany(EmpMaster::className(), ['emp_master_status_id' => 'emp_status_id']);
 }
Example #2
0
 public function getEmpMaster()
 {
     return $this->hasOne(EmpMaster::className(), ['emp_master_user_id' => 'user_id']);
 }
Example #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEmpMasters()
 {
     return $this->hasMany(EmpMaster::className(), ['emp_master_department_id' => 'emp_department_id']);
 }