From 40e1624d9d8540a748644cbf0ffa4e1861f99a42 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sat, 14 Jul 2018 10:59:51 +0200 Subject: [PATCH] Defined email as unique identifier --- src/entity/user/User.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/entity/user/User.php b/src/entity/user/User.php index 8e0e7bd..e739636 100644 --- a/src/entity/user/User.php +++ b/src/entity/user/User.php @@ -14,6 +14,7 @@ final class User implements UserInterface private $name; /** + * Unique identifier in database * @var string */ private $email; @@ -52,9 +53,5 @@ final class User implements UserInterface { return $this->email; } - - public function getId(): int - {} - }