You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 line
691B

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\AdminBundle\IModel\User\UserInterface;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. use Lc\AdminBundle\Model\User\User as LcUserModel;
  7. /**
  8. * @ORM\Entity(repositoryClass="Lc\AdminBundle\Repository\User\UserRepository")
  9. * @UniqueEntity(fields={"email"}, message="There is already an account with this email")
  10. */
  11. class User extends LcUserModel implements UserInterface
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\GeneratedValue
  16. * @ORM\Column(type="integer")
  17. */
  18. private $id;
  19. public function getId(): ?int
  20. {
  21. return $this->id;
  22. }
  23. }