diff --git a/reference/constraints/Bic.rst b/reference/constraints/Bic.rst index 2c16b4aade6..0d4fc9aeba7 100644 --- a/reference/constraints/Bic.rst +++ b/reference/constraints/Bic.rst @@ -48,8 +48,7 @@ will contain a Business Identifier Code (BIC). AppBundle\Entity\Transaction: properties: businessIdentifierCode: - - Bic: - message: This is not a valid Business Identifier Code (BIC). + - Bic: ~ .. code-block:: xml @@ -61,11 +60,7 @@ will contain a Business Identifier Code (BIC). - - - + @@ -84,9 +79,7 @@ will contain a Business Identifier Code (BIC). public static function loadValidatorMetadata(ClassMetadata $metadata) { - $metadata->addPropertyConstraint('businessIdentifierCode', new Assert\Bic(array( - 'message' => 'This is not a valid Business Identifier Code (BIC).', - ))); + $metadata->addPropertyConstraint('businessIdentifierCode', new Assert\Bic()); } }