-
- // Get database instance
- $dbInstance = $personellInstance->getDatabaseInstance();
-
- // Is the unique ID already used? Then it must be there!
- if (!$dbInstance->isUniqueIdUsed($tempID)) {
- // Entry not found!
- throw new MissingSimulatorIdException(array($personellInstance, $idNumber), self::EXCEPTION_SIMULATOR_ID_INVALID);
- }
-
- // Load the personell list and add it to this object
- $personellInstance->loadPersonellList($tempID);
-
- // Clean-up a little
- $personellInstance->removeGender();
- $personellInstance->removeNames();
- $personellInstance->removeBirthday();
- $personellInstance->removeSalary();
- $personellInstance->removeEmployed();
- $personellInstance->removeMarried();
- $personellInstance->removeNumberFormaters();
- //$personellInstance->removeCache();
- $personellInstance->removeSystemArray();
-
- // Return instance
- return $personellInstance;