Skip to content

Commit 349b637

Browse files
committed
minor #1400 [docs] validate invitation on registration only (nnscr)
This PR was squashed before being merged into the 2.0.x-dev branch (closes #1400). Discussion ---------- [docs] validate invitation on registration only See issue #1399, just a minor change in the documentation Commits ------- a05e866 [docs] validate invitation on registration only
2 parents f89f380 + a05e866 commit 349b637

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)