@@ -625,7 +625,7 @@ this method must return ``true``:
625
625
class Author
626
626
{
627
627
/**
628
- * @Assert\True (message = "The password cannot match your first name")
628
+ * @Assert\IsTrue (message = "The password cannot match your first name")
629
629
*/
630
630
public function isPasswordLegal()
631
631
{
@@ -670,7 +670,7 @@ this method must return ``true``:
670
670
{
671
671
public static function loadValidatorMetadata(ClassMetadata $metadata)
672
672
{
673
- $metadata->addGetterConstraint('passwordLegal', new Assert\True (array(
673
+ $metadata->addGetterConstraint('passwordLegal', new Assert\IsTrue (array(
674
674
'message' => 'The password cannot match your first name',
675
675
)));
676
676
}
@@ -928,7 +928,7 @@ username and the password are different only if all other validation passes
928
928
private $password;
929
929
930
930
/**
931
- * @Assert\True (message="The password cannot match your username", groups={"Strict"})
931
+ * @Assert\IsTrue (message="The password cannot match your username", groups={"Strict"})
932
932
*/
933
933
public function isPasswordLegal()
934
934
{
@@ -1002,7 +1002,7 @@ username and the password are different only if all other validation passes
1002
1002
$metadata->addPropertyConstraint('username', new Assert\NotBlank());
1003
1003
$metadata->addPropertyConstraint('password', new Assert\NotBlank());
1004
1004
1005
- $metadata->addGetterConstraint('passwordLegal', new Assert\True (array(
1005
+ $metadata->addGetterConstraint('passwordLegal', new Assert\IsTrue (array(
1006
1006
'message' => 'The password cannot match your first name',
1007
1007
'groups' => array('Strict'),
1008
1008
)));
0 commit comments