/** * Finds user by [[NRIC]] * * @return User|null */ public function getEmployee() { if ($this->_employee === false) { $this->_employee = Employee::findByNRIC($this->NRIC); } return $this->_employee; }