File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -113,21 +113,21 @@ collection::
113
113
114
114
.. code-block :: php-attributes
115
115
116
- // src/Entity/Poi .php
116
+ // src/Entity/PointOfInterest .php
117
117
namespace App\Entity;
118
118
119
119
use Symfony\Component\Validator\Constraints as Assert;
120
120
121
- class Poi
121
+ class PointOfInterest
122
122
{
123
- #[Assert\Unique(fields= ['latitude', 'longitude'])]
123
+ #[Assert\Unique(fields: ['latitude', 'longitude'])]
124
124
protected array $coordinates;
125
125
}
126
126
127
127
.. code-block :: yaml
128
128
129
129
# config/validator/validation.yaml
130
- App\Entity\Poi :
130
+ App\Entity\PointOfInterest :
131
131
properties :
132
132
coordinates :
133
133
- Unique :
@@ -141,7 +141,7 @@ collection::
141
141
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
142
142
xsi : schemaLocation =" http://symfony.com/schema/dic/constraint-mapping https://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd" >
143
143
144
- <class name =" App\Entity\Poi " >
144
+ <class name =" App\Entity\PointOfInterest " >
145
145
<property name =" coordinates" >
146
146
<constraint name =" Unique" >
147
147
<option name =" fields" >
@@ -155,13 +155,13 @@ collection::
155
155
156
156
.. code-block :: php
157
157
158
- // src/Entity/Poi .php
158
+ // src/Entity/PointOfInterest .php
159
159
namespace App\Entity;
160
160
161
161
use Symfony\Component\Validator\Constraints as Assert;
162
162
use Symfony\Component\Validator\Mapping\ClassMetadata;
163
163
164
- class Poi
164
+ class PointOfInterest
165
165
{
166
166
// ...
167
167
You can’t perform that action at this time.
0 commit comments