File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments