Skip to content

Commit a05e866

Browse files
nnscrstof
authored andcommitted
[docs] validate invitation on registration only
1 parent da9a973 commit a05e866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/doc/adding_invitation_registration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class User extends \FOS\UserBundle\Entity\User
100100
/**
101101
* @ORM\OneToOne(targetEntity="Invitation", inversedBy="user")
102102
* @ORM\JoinColumn(referencedColumnName="code")
103-
* @Assert\NotNull(message="Your invitation is wrong")
103+
* @Assert\NotNull(message="Your invitation is wrong", groups={"Registration"})
104104
*/
105105
protected $invitation;
106106

0 commit comments

Comments
 (0)