|
|
@@ -36,7 +36,7 @@ class InitUserMerchantEventSubscriber implements EventSubscriberInterface |
|
|
|
|
|
|
|
public function createUserMerchant(EntityManagerEvent $event) |
|
|
|
{ |
|
|
|
$user = $event->getEntity(); |
|
|
|
/* $user = $event->getEntity(); |
|
|
|
$entityRepository = $this->em->getRepository(get_class($user)); |
|
|
|
if ($user instanceof UserInterface) { |
|
|
|
$existingUser = $entityRepository->findOneByEmail($user->getEmail()); |
|
|
@@ -52,7 +52,7 @@ class InitUserMerchantEventSubscriber implements EventSubscriberInterface |
|
|
|
); |
|
|
|
$this->em->create($userMerchant); |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
} |
|
|
|
|
|
|
|
|