public function setUser(PersistentObject $user) { $this->login = $user->getLogin(); $this->setProfile($user, $user->getProfile()); $this->weakPass = $user->weakPassword(); $this->weakPass = false; }