Skip to content

Commit d026fe4

Browse files
committed
minor #17220 Remove annotations from constraint examples added in 6.1 (wouterj)
This PR was merged into the 6.1 branch. Discussion ---------- Remove annotations from constraint examples added in 6.1 Commits ------- a82cc31 Remove annotations from constraint examples added in 6.1
2 parents 4018bd6 + a82cc31 commit d026fe4

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

reference/constraints/ExpressionSyntax.rst

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,6 @@ The following constraints ensure that:
2828

2929
.. configuration-block::
3030

31-
.. code-block:: php-annotations
32-
33-
// src/Entity/Order.php
34-
namespace App\Entity;
35-
36-
use Symfony\Component\Validator\Constraints as Assert;
37-
38-
class Order
39-
{
40-
/**
41-
* @Assert\ExpressionSyntax
42-
*/
43-
protected $promotion;
44-
45-
/**
46-
* @Assert\ExpressionSyntax(
47-
* allowedVariables={"user", "shipping_centers"}
48-
* )
49-
*/
50-
protected $shippingOptions;
51-
}
52-
5331
.. code-block:: php-attributes
5432
5533
// src/Entity/Order.php

reference/constraints/Unique.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,6 @@ collection::
109109

110110
.. configuration-block::
111111

112-
.. code-block:: php-annotations
113-
114-
// src/Entity/Poi.php
115-
namespace App\Entity;
116-
117-
use Symfony\Component\Validator\Constraints as Assert;
118-
119-
class Poi
120-
{
121-
/**
122-
* @Assert\Unique(fields={"latitude", "longitude"})
123-
*/
124-
protected $coordinates;
125-
}
126-
127112
.. code-block:: php-attributes
128113
129114
// src/Entity/Poi.php

0 commit comments

Comments
 (0)