Skip to content

Commit c556752

Browse files
sgrodzickiweaverryan
authored andcommitted
Required parameter $property missing
1 parent 83d2de8 commit c556752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ table:
9999
'message' => 'This email already exists.',
100100
)));
101101
102-
$metadata->addPropertyConstraint(new Assert\Email());
102+
$metadata->addPropertyConstraint('email', new Assert\Email());
103103
}
104104
}
105105

0 commit comments

Comments
 (0)