Internal: Remove deprecated calls use only $em->flush();

pull/3466/head
Julio Montoya 4 years ago
parent 7b3fd86b0e
commit 02c608ae63
  1. 4
      public/main/inc/lib/usermanager.lib.php
  2. 4
      src/CoreBundle/EventListener/OnlineListener.php
  3. 2
      src/CourseBundle/Entity/CTool.php

@ -351,7 +351,7 @@ class UserManager
}
$em->persist($user);
$em->flush($user);
$em->flush();
$userId = $user->getId();
@ -6138,7 +6138,7 @@ SQL;
}
}
$em->persist($user);
$em->flush($user);
$em->flush();
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);
$em->flush();
}
public function getPosition()

Loading…
Cancel
Save