diff --git a/reference/constraints/ExpressionSyntax.rst b/reference/constraints/ExpressionSyntax.rst index 3d0ef55f018..45a633867d7 100644 --- a/reference/constraints/ExpressionSyntax.rst +++ b/reference/constraints/ExpressionSyntax.rst @@ -28,28 +28,6 @@ The following constraints ensure that: .. configuration-block:: - .. code-block:: php-annotations - - // src/Entity/Order.php - namespace App\Entity; - - use Symfony\Component\Validator\Constraints as Assert; - - class Order - { - /** - * @Assert\ExpressionSyntax - */ - protected $promotion; - - /** - * @Assert\ExpressionSyntax( - * allowedVariables={"user", "shipping_centers"} - * ) - */ - protected $shippingOptions; - } - .. code-block:: php-attributes // src/Entity/Order.php diff --git a/reference/constraints/Unique.rst b/reference/constraints/Unique.rst index a3af3f6b94e..4c5c5945e76 100644 --- a/reference/constraints/Unique.rst +++ b/reference/constraints/Unique.rst @@ -109,21 +109,6 @@ collection:: .. configuration-block:: - .. code-block:: php-annotations - - // src/Entity/Poi.php - namespace App\Entity; - - use Symfony\Component\Validator\Constraints as Assert; - - class Poi - { - /** - * @Assert\Unique(fields={"latitude", "longitude"}) - */ - protected $coordinates; - } - .. code-block:: php-attributes // src/Entity/Poi.php