public function update(User $user) { $this->setUserGroup($user->getUserGroup()); $this->setUserName($user->getUserName()); $this->setFirstName($user->getFirstName()); $this->setLastName($user->getLastName()); $this->setEmail($user->getEmail()); $this->setPhoneNumber($user->getPhoneNumber()); $this->setMobileNumber($user->getMobileNumber()); $this->setAddress($user->getAddress()); $this->setZipCode($user->getZipCode()); $this->setPlace($user->getPlace()); $this->setPlainPassword($user->getPlainPassword()); $this->setPasswordHash($user->getPasswordHash()); $this->setLastLoginDate($user->getLastLoginDate()); $this->setRegistrationDate($user->getRegistrationDate()); $this->setIsLocked($user->getIsLocked()); $this->setIsLockedBy($user->getIsLockedBy()); }