@ -351,7 +351,7 @@ class UserManager
}
$em->persist($user);
$em->flush($user);
$em->flush();
$userId = $user->getId();
@ -6138,7 +6138,7 @@ SQL;
Event::addEvent(LOG_USER_ANONYMIZE, LOG_USER_ID, $userId);
return true;
@ -51,8 +51,8 @@ class OnlineListener
if ($user instanceof User && $user->getLastLogin() < $delay) {
// User
$user->setLastLogin(new DateTime());
$this->em->flush($user);
$this->em->persist($user);
$this->em->flush();
@ -268,7 +268,7 @@ class CTool extends AbstractResource implements ResourceInterface
$em = $args->getEntityManager();
$this->setId($this->iid);
$em->persist($this);
$em->flush($this);
public function getPosition()