@@ -31,7 +31,7 @@ between all of the constraints in your user table:
3131
3232 .. code-block :: php-annotations
3333
34- // src/Entity/Author .php
34+ // src/Entity/User .php
3535 namespace App\Entity;
3636
3737 use Symfony\Component\Validator\Constraints as Assert;
@@ -44,7 +44,7 @@ between all of the constraints in your user table:
4444 * @ORM\Entity
4545 * @UniqueEntity("email")
4646 */
47- class Author
47+ class User
4848 {
4949 /**
5050 * @ORM\Column(name="email", type="string", length=255, unique=true)
@@ -56,7 +56,7 @@ between all of the constraints in your user table:
5656 .. code-block :: yaml
5757
5858 # config/validator/validation.yaml
59- App\Entity\Author :
59+ App\Entity\User :
6060 constraints :
6161 - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity : email
6262 properties :
@@ -71,7 +71,7 @@ between all of the constraints in your user table:
7171 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
7272 xsi : schemaLocation =" http://symfony.com/schema/dic/constraint-mapping https://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd" >
7373
74- <class name =" App\Entity\Author " >
74+ <class name =" App\Entity\User " >
7575 <constraint name =" Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity" >
7676 <option name =" fields" >email</option >
7777 </constraint >
@@ -83,15 +83,15 @@ between all of the constraints in your user table:
8383
8484 .. code-block :: php
8585
86- // src/Entity/Author .php
86+ // src/Entity/User .php
8787 namespace App\Entity;
8888
8989 use Symfony\Component\Validator\Constraints as Assert;
9090
9191 // DON'T forget this use statement!!!
9292 use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
9393
94- class Author
94+ class User
9595 {
9696 public static function loadValidatorMetadata(ClassMetadata $metadata)
9797 {
0 commit comments