entities

Entities and repositories support via attributes and repository generator

MIT License

Downloads
3.4K
Stars
5
Committers
1

Bot releases are hidden (Show)

entities - Allow Symfony 7 Latest Release

Published by iquito 11 months ago

Otherwise no changes.

entities - Upgrade types dependency

Published by iquito almost 2 years ago

Use new stable version.

entities -

Published by iquito over 2 years ago

entities - Add better coercion with deprecations

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.

entities - Support expressions in group part

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.

entities - Improve type guessing

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.

entities - Remove Iterator/IteratorAggregate type hints

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.

entities - Adjust type hints for generated repositories

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.

entities - First stable release

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.

entities - Fix dependency version

Published by iquito almost 3 years ago

We updated the queries dependency too early - reverted that change now.

entities - Improve typing information

Published by iquito almost 3 years ago

Enable fully typed mode in Psalm for generated repositories.

entities -

Published by iquito almost 3 years ago

entities - PHP 8.1 compatibility 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.

entities - Move to PHP8-only (with BC break)

Published by iquito over 3 years ago

  • 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
entities - Enable upserts to have complicated update clauses

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.

entities - Support PHP8 attributes

Published by iquito almost 4 years ago

Both annotations and attributes are supported, but attributes are the way forward and preferred.

entities - Fix class finder for PHP8

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.

entities -

Published by iquito almost 4 years ago

entities -

Published by iquito about 4 years ago

entities -

Published by iquito about 4 years ago