Defined email as unique identifier

This commit is contained in:
Kevin Frantz 2018-07-14 10:59:51 +02:00
parent 8217753e3b
commit 40e1624d9d

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
{}
}