Defined email as unique identifier

This commit is contained in:
Kevin Frantz committed 2018-07-14 10:59:51 +02:00
1 parent 8217753e3b
commit 40e1624d9d
1 file changed
+1 -4
+1 -4
View File
@@ -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
{}
}