Entities and repositories support via attributes and repository generator
MIT License
Bot releases are hidden (Show)
Otherwise no changes.
Published by iquito almost 2 years ago
Use new stable version.
Published by iquito over 2 years ago
Emit a deprecation notice if a suspect value is being coerced for a known type. This will be escalated to an exception in v2.
Published by iquito over 2 years ago
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.
Published by iquito over 2 years ago
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.
Published by iquito over 2 years ago
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.
Published by iquito almost 3 years ago
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.
Published by iquito almost 3 years ago
Built upon the squirrelphp queries library v1.2+, the entities library should be in good shape for a stable release.
Published by iquito almost 3 years ago
We updated the queries dependency too early - reverted that change now.
Published by iquito almost 3 years ago
Enable fully typed mode in Psalm for generated repositories.
Published by iquito almost 3 years ago
PHP 8.1 reported an error about "Could not check
compatibility" because SelectIterator was type
hinted before it was defined when generating
repositories.
Published by iquito over 3 years ago
Published by iquito over 3 years ago
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.
Published by iquito almost 4 years ago
Both annotations and attributes are supported, but attributes are the way forward and preferred.
Published by iquito almost 4 years ago
PHP8 changed how namespaces and class names are composed, so
finding the correct namespaces and used classes is slightly
different.