Releases: squirrelphp/entities
Releases · squirrelphp/entities
Fix dependency version
We updated the queries dependency too early - reverted that change now.
Improve typing information
Enable fully typed mode in Psalm for generated repositories.
v0.12.2
PHP 8.1 compatibility for generated repositories
PHP 8.1 reported an error about "Could not check
compatibility" because SelectIterator was type
hinted before it was defined when generating
repositories.
Move to PHP8-only (with BC break)
- Rename Annotation directory to Attribute - this is a BC break
(you will need to change the class imports in your entities) - Remove annotation support and dependency on doctrine annotations
- Check all tests with Psalm and add better typing
Enable upserts to have complicated update clauses
insertOrUpdate
did not accept all the possibilities of an
update clause so far - it had its own implementation on
how to parse the updates. We now use the exact same logic
as for update
, enabling the same queries.
Support PHP8 attributes
Both annotations and attributes are supported, but attributes are the way forward and preferred.
Fix class finder for PHP8
PHP8 changed how namespaces and class names are composed, so
finding the correct namespaces and used classes is slightly
different.
v0.11
v0.10: Rename trait to populate entity properties
- Also fix multi repositories use case with no where query and only one repository - Some configuration updates