Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix user creation following change in mapping configuration
Browse files Browse the repository at this point in the history
Fixes #77

Signed-off-by: Max Fierke <[email protected]>
  • Loading branch information
maxfierke committed Apr 20, 2014
1 parent 97ee832 commit a0ea22f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OpenSkedge/AppBundle/Controller/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ public function newAction(Request $request)
$plainPassword = $entity->getPassword();
$password = $encoder->encodePassword($plainPassword, $entity->getSalt());
$entity->setPassword($password);
$em->persist($entity);
$em->flush();
$clock = new Clock();
$clock->setUser($entity);
$em->persist($clock);
$em->flush();
$entity->setClock($clock);
$em->persist($entity);
$em->flush();

$mailer = $this->container->get('notify_mailer');
$mailer->notifyUserCreation($entity, $plainPassword);
Expand Down

0 comments on commit a0ea22f

Please sign in to comment.