8000 Merge branch '6.4' into 7.0 · symfony/symfony-docs@a1aef93 · GitHub
[go: up one dir, main page]

Skip to content

Commit a1aef93

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: Update Unique.rst
2 parents d91a00c + a2f362a commit a1aef93

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

reference/constraints/Unique.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,21 @@ collection::
113113

114114
.. code-block:: php-attributes
115115
116-
// src/Entity/Poi.php
116+
// src/Entity/PointOfInterest.php
117117
namespace App\Entity;
118118
119119
use Symfony\Component\Validator\Constraints as Assert;
120120
121-
class Poi
121+
class PointOfInterest
122122
{
123-
#[Assert\Unique(fields=['latitude', 'longitude'])]
123+
#[Assert\Unique(fields: ['latitude', 'longitude'])]
124124
protected array $coordinates;
125125
}
126126
127127
.. code-block:: yaml
128128
129129
# config/validator/validation.yaml
130-
App\Entity\Poi:
130+
App\Entity\PointOfInterest:
131131
properties:
132132
coordinates:
133133
- Unique:
@@ -141,7 +141,7 @@ collection::
141141
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
142142
xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping https://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd">
143143
144-
<class name="App\Entity\Poi">
144+
<class name="App\Entity\PointOfInterest">
145145
<property name="coordinates">
146146
<constraint name="Unique">
147147
<option name="fields">
@@ -155,13 +155,13 @@ collection::
155155
156156
.. code-block:: php
157157
158-
// src/Entity/Poi.php
158+
// src/Entity/PointOfInterest.php
159159
namespace App\Entity;
160160
161161
use Symfony\Component\Validator\Constraints as Assert;
162162
use Symfony\Component\Validator\Mapping\ClassMetadata;
163163
164-
class Poi
164+
class PointOfInterest
165165
{
166166
// ...
167167

0 commit comments

Comments
 (0)
0