You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/configuration.md
-10Lines changed: 0 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,13 +189,6 @@ rdfa:
189
189
190
190
*Support for other namespaces than `http://schema.org` is planned for future versions but not currently available.*
191
191
192
-
## Enabling PSR-5 PHPDoc support
193
-
194
-
Set the `useType` option to `true` and the generator will use the `@type` annotation (defined in ([PSR-5](https://github.com/php-fig/fig-standards/pull/169))
195
-
instead of the traditional `@var`.
196
-
197
-
*The current status of PSR-5 is draft and is still subject to major modifications.*
198
-
199
192
## Checking GoodRelation compatibility
200
193
201
194
If the `checkIsGoodRelations` option is set to `true`, the generator will emit a warning if an encountered property is not
@@ -246,9 +239,6 @@ generateId: true
246
239
# Generate interfaces and use Doctrine's Resolve Target Entity feature
247
240
useInterface: false
248
241
249
-
# Use PSR-5's @type annotation instead of @var in the PHPDoc
250
-
useType: false
251
-
252
242
# Use Doctrine's ArrayCollection instead of standard arrays
Copy file name to clipboardExpand all lines: doc/getting-started.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,61 +134,61 @@ use Symfony\Component\Validator\Constraints as Assert;
134
134
class Person extends Thing
135
135
{
136
136
/**
137
-
* @var integer $id
137
+
* @var integer
138
138
* @ORM\Column(type="integer")
139
139
* @ORM\Id
140
140
* @ORM\GeneratedValue(strategy="AUTO")
141
141
*/
142
142
private $id;
143
143
/**
144
-
* @var string $additionalName An additional name for a Person, can be used for a middle name.
144
+
* @var string An additional name for a Person, can be used for a middle name.
145
145
* @Assert\Type(type="string")
146
146
* @ORM\Column(nullable=true)
147
147
*/
148
148
private $additionalName;
149
149
/**
150
-
* @var PostalAddress $address Physical address of the item.
150
+
* @var PostalAddress Physical address of the item.
151
151
* @ORM\ManyToOne(targetEntity="PostalAddress")
152
152
*/
153
153
private $address;
154
154
/**
155
-
* @var \DateTime $birthDate Date of birth.
155
+
* @var \DateTime Date of birth.
156
156
* @Assert\Date
157
157
* @ORM\Column(type="date", nullable=true)
158
158
*/
159
159
private $birthDate;
160
160
/**
161
-
* @var string $email Email address.
161
+
* @var string Email address.
162
162
* @Assert\Email
163
163
* @ORM\Column(nullable=true)
164
164
*/
165
165
private $email;
166
166
/**
167
-
* @var string $familyName Family name. In the U.S., the last name of an Person. This can be used along with givenName instead of the name property.
167
+
* @var string Family name. In the U.S., the last name of an Person. This can be used along with givenName instead of the name property.
168
168
* @Assert\Type(type="string")
169
169
* @ORM\Column(nullable=true)
170
170
*/
171
171
private $familyName;
172
172
/**
173
-
* @var string $gender Gender of the person.
173
+
* @var string Gender of the person.
174
174
* @Assert\Type(type="string")
175
175
* @ORM\Column(nullable=true)
176
176
*/
177
177
private $gender;
178
178
/**
179
-
* @var string $givenName Given name. In the U.S., the first name of a Person. This can be used along with familyName instead of the name property.
179
+
* @var string Given name. In the U.S., the first name of a Person. This can be used along with familyName instead of the name property.
180
180
* @Assert\Type(type="string")
181
181
* @ORM\Column(nullable=true)
182
182
*/
183
183
private $givenName;
184
184
/**
185
-
* @var string $jobTitle The job title of the person (for example, Financial Manager).
185
+
* @var string The job title of the person (for example, Financial Manager).
186
186
* @Assert\Type(type="string")
187
187
* @ORM\Column(nullable=true)
188
188
*/
189
189
private $jobTitle;
190
190
/**
191
-
* @var string $telephone The telephone number.
191
+
* @var string The telephone number.
192
192
* @Assert\Type(type="string")
193
193
* @ORM\Column(nullable=true)
194
194
*/
@@ -448,32 +448,32 @@ use Symfony\Component\Validator\Constraints as Assert;
448
448
class PostalAddress
449
449
{
450
450
/**
451
-
* @var integer $id
451
+
* @var integer
452
452
* @ORM\Column(type="integer")
453
453
* @ORM\Id
454
454
* @ORM\GeneratedValue(strategy="AUTO")
455
455
*/
456
456
private $id;
457
457
/**
458
-
* @var string $addressCountry The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1).
458
+
* @var string The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1).
459
459
* @Assert\Type(type="string")
460
460
* @ORM\Column(nullable=true)
461
461
*/
462
462
private $addressCountry;
463
463
/**
464
-
* @var string $addressLocality The locality. For example, Mountain View.
464
+
* @var string The locality. For example, Mountain View.
465
465
* @Assert\Type(type="string")
466
466
* @ORM\Column(nullable=true)
467
467
*/
468
468
private $addressLocality;
469
469
/**
470
-
* @var string $addressRegion The region. For example, CA.
470
+
* @var string The region. For example, CA.
471
471
* @Assert\Type(type="string")
472
472
* @ORM\Column(nullable=true)
473
473
*/
474
474
private $addressRegion;
475
475
/**
476
-
* @var string $postalCode The postal code. For example, 94043.
476
+
* @var string The postal code. For example, 94043.
477
477
* @Assert\Type(type="string")
478
478
* @ORM\Column(nullable=true)
479
479
*/
@@ -485,7 +485,7 @@ class PostalAddress
485
485
*/
486
486
private $postOfficeBoxNumber;
487
487
/**
488
-
* @var string $streetAddress The street address. For example, 1600 Amphitheatre Pkwy.
488
+
* @var string The street address. For example, 1600 Amphitheatre Pkwy.
->booleanNode('generateId')->defaultTrue()->info('Automatically add an id field to entities')->end()
50
50
->booleanNode('useInterface')->defaultFalse()->info('Generate interfaces and use Doctrine\'s Resolve Target Entity feature')->end()
51
-
->booleanNode('useType')->defaultFalse()->info('Use PSR-5\'s @type annotation instead of @var in the PHPDoc')->end()
52
51
->booleanNode('useDoctrineCollection')->defaultTrue()->info('Use Doctrine\'s ArrayCollection instead of standard arrays')->end()
53
52
->booleanNode('checkIsGoodRelations')->defaultFalse()->info('Emit a warning if a property is not derived from GoodRelations')->end()
54
53
->scalarNode('header')->defaultFalse()->info('A license or any text to use as header of generated files')->example('// (c) Kévin Dunglas <[email protected]>')->end()
0 commit comments