コード例 #1
0
ファイル: EmployeeLoginForm.php プロジェクト: sindotnet/cona
 /**
  * Finds user by [[NRIC]]
  *
  * @return User|null
  */
 public function getEmployee()
 {
     if ($this->_employee === false) {
         $this->_employee = Employee::findByNRIC($this->NRIC);
     }
     return $this->_employee;
 }