File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -315,9 +315,16 @@ a collection - a non-scalar value capable of containing other values. Currently
315
315
this returns ``true `` if:
316
316
317
317
* The :ref: `built-in PHP data type <components-property-info-type-builtin >`
318
- is ``array ``, or
318
+ is ``array ``;
319
319
* The mutator method the property is derived from has a prefix of ``add ``
320
- or ``remove `` (which are defined as the list of array mutator prefixes).
320
+ or ``remove `` (which are defined as the list of array mutator prefixes);
321
+ * The `phpDocumentor `_ annotation is of type "collection" (e.g.
322
+ ``@var SomeClass<DateTime> ``, ``@var SomeClass<integer,string> ``,
323
+ ``@var Doctrine\Common\Collections\Collection<App\Entity\SomeEntity> ``, etc.)
324
+
325
+ .. versionadded :: 4.2
326
+
327
+ The support of phpDocumentor collection types was introduced in Symfony 4.2.
321
328
322
329
Type::getCollectionKeyType() & Type::getCollectionValueType()
323
330
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -497,3 +504,4 @@ service by defining it as a service with one or more of the following
497
504
.. _`symfony/serializer` : https://packagist.org/packages/symfony/serializer
498
505
.. _`symfony/doctrine-bridge` : https://packagist.org/packages/symfony/doctrine-bridge
499
506
.. _`doctrine/orm` : https://packagist.org/packages/doctrine/orm
507
+ .. _`phpDocumentor` : https://www.phpdoc.org/
You can’t perform that action at this time.
0 commit comments