Skip to content

Commit 22a3427

Browse files
gremokbond
authored andcommitted
[Doc] Clarify collection hydration requirements
1 parent a90f53d commit 22a3427

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,12 @@ To work with a collection of DTOs, specify the collection type inside PHPDoc::
684684
public array $addressDtoCollection;
685685
}
686686

687+
Collection type extraction from the docblock requires the ``phpdocumentor/reflection-docblock`` library. Make sure it is installed in you application:
688+
689+
.. code-block:: terminal
690+
691+
$ composer require phpdocumentor/reflection-docblock
692+
687693
Here is how the (de)hydration of DTO objects works:
688694

689695
- All "properties" (public properties or fake properties via

0 commit comments

Comments
 (0)