public function savePending($data, User $user)
{
if (!$user->isPending()) {
throw new \InvalidArgumentException("User '{$user->getUsername()}' is not pending user.");
}
$user->setActive();
$user->setPublic(true);
$this->save($data, $user);
return $this;
}