Repository navigation
Added
-
operation_names: true, at the root or for a manager, names each query after its entity and the method sending it
(query Task_findBy { ... },mutation flush { ... }), for the logs and the monitoring of the API; off by default,
as it changes the text of the queries.GraphqlQueryBuilder::name()names a query whatever the option. -
The PHPStan extension tells that the mapped properties are written by the hydration and read by
flush(): a
readonlyidentifier needs no constructor.
Changed
phpstan/phpdoc-parser2.3.1 or later is required, rather than 2.2: the tests of the PHPStan extension of the bundle
failed with 2.2 and 2.3.0, whose nodes cannot be read back from the cache of PHPStan.- The hydration and
flush()bypass the hooks of the properties, as Doctrine does: thesethooks no longer run when
an entity is hydrated, andflush()sends the value a property holds rather than the one itsgethook returns.
A virtual property, holding no value of its own, can no longer be mapped: anInvalidArgumentExceptionsays so.
Fixed
- A
readonlyproperty is no longer written again when another query returns the entity: an entity with a readonly
identifier threwCannot modify readonly propertyonce met by a second query.