Releases: squirrelphp/entities
New dependency basis
Allow Symfony 7
Otherwise no changes.
Upgrade types dependency
Use new stable version.
v1.1.1: More verbose deprecation messages
Makes it easier to pinpoint the origin/cause of the deprecation.
Add better coercion with deprecations
Emit a deprecation notice if a suspect value is being coerced for a known type. This will be escalated to an exception in v2.
Support expressions in group part
When using multi table queries the group by part did not support expressions until now, only known field names. This adds support for arbitrary expressions.
Improve type guessing
Type guessing in multi repository expressions have been vastly improved to make sure no information is lost and to keep a value as a string if a conversion would lead to a loss of information.
Remove Iterator/IteratorAggregate type hints
Newer PHPStan versions use the wrong type information if multiple
type hints exists on different classes, leading to the typing
of generated repositories being ignored/overlooked. By removing
the type hints for the base classes, only one type hint exists
and PHPStan applies it correctly.
Adjust type hints for generated repositories
Both PHPStan and Psalm were confused by the @implements
type hints in generated repositories because Iterator/IteratorAggregate were not directly implemented (only through the base class), so we added those explicitely through "implements". This changes nothing about the functionality though.
First stable release
Built upon the squirrelphp queries library v1.2+, the entities library should be in good shape for a stable release.