Skip to content

v5.13.0

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Oct 14:12

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
    readonly identifier needs no constructor.

Changed

  • phpstan/phpdoc-parser 2.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: the set hooks no longer run when
    an entity is hydrated, and flush() sends the value a property holds rather than the one its get hook returns.
    A virtual property, holding no value of its own, can no longer be mapped: an InvalidArgumentException says so.

Fixed

  • A readonly property is no longer written again when another query returns the entity: an entity with a readonly
    identifier threw Cannot modify readonly property once met by a second query.