coolms / entity-module
Platform composition layer over coolms/entity: reflection field extraction, the tagged repository registry, the extras-flattening normalizer and the entity:find widget renderers
Requires
- php: ^8.5
- coolms/core: ^2.0
- coolms/dtmpl: ^2.0
- coolms/entity: ^2.0
- coolms/entity-persistence-implementation: ^2.0
- coolms/rql: ^1.0
- symfony/dependency-injection: ^8.0
- symfony/serializer: ^8.0
- symfony/uid: ^8.0
Requires (Dev)
- coolms/entity-doctrine: ^2.0
- phpunit/phpunit: ^12.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-04 08:30:25 UTC
README
Platform composition over coolms/entity:
the pieces that need a persistence implementation without naming one.
Serializer\ExtrasFlatteningNormalizer-- lifts an entity's$extrasbag onto the normalized top level and routes writes back into it, filtered by the instance-aware schema so a field scoped withappliesTonever leaks onto an instance it does not apply to. Types claimed throughExtrasNormalizationExclusionInterfaceare left alone.TaggedRepositoryRegistry/Resolver\RepositoryEntityAliasResolver-- alias-to-repository lookup over the tagged repository set.ReflectionFieldExtractor/Field\ReflectionEntityFieldDescriptor-- attribute-driven field description.Widget\*--entity:findandentity:findAllrenderers for coolms/dtmpl.
Requires the virtual package coolms/entity-persistence-implementation, which
coolms/entity-doctrine provides.
Installation
composer require coolms/entity-module coolms/entity-doctrine
The adapter is part of the install, not a second step. This package requires the virtual
coolms/entity-persistence-implementation, and only an adapter provides it, socomposer require coolms/entity-moduleon its own cannot resolve — Composer reports that the virtual package "could not be found in any version", which reads like a broken package rather than a missing argument.The hard failure is by design. The alternative is a platform that installs cleanly and then cannot persist anything.
coolms/entity-doctrineis the adapter that exists today; substitute another if you write one.