diff --git a/reference/constraints/Image.rst b/reference/constraints/Image.rst index b73e75ac2e4..e128a192987 100644 --- a/reference/constraints/Image.rst +++ b/reference/constraints/Image.rst @@ -159,17 +159,6 @@ following code: .. configuration-block:: - .. code-block:: yaml - - # src/Acme/BlogBundle/Resources/config/validation.yml - Acme\BlogBundle\Entity\Author - properties: - headshot: - - Image: - allowLandscape: false - allowPortrait: false - - .. code-block:: php-annotations // src/Acme/BlogBundle/Entity/Author.php @@ -181,13 +170,23 @@ following code: { /** * @Assert\Image( - * allowLandscape = false + * allowLandscape = false, * allowPortrait = false * ) */ protected $headshot; } + .. code-block:: yaml + + # src/Acme/BlogBundle/Resources/config/validation.yml + Acme\BlogBundle\Entity\Author + properties: + headshot: + - Image: + allowLandscape: false + allowPortrait: false + .. code-block:: xml