coolms / entity-doctrine
Doctrine ORM/DBAL adapters for coolms/entity: the extras mapping driver and validation listener, generated virtual columns, per-platform schema and upsert managers, and tree operators
v1.0.0
2026-08-18 11:06 UTC
Requires
- php: ^8.5
- coolms/core: ^1.0
- coolms/entity: ^1.0
- coolms/rql: ^1.0
- doctrine/dbal: ^4.0
- doctrine/doctrine-bundle: ^3.2
- doctrine/orm: ^3.0
- doctrine/persistence: ^4.0
- psr/cache: ^3.0
- psr/log: ^3.0
- symfony/cache: ^8.0
- symfony/console: ^8.0
- symfony/doctrine-bridge: ^8.0
- symfony/event-dispatcher: ^8.0
- symfony/http-kernel: ^8.0
- symfony/messenger: ^8.0
- symfony/security-bundle: ^8.0
- symfony/uid: ^8.0
Requires (Dev)
- phpunit/phpunit: ^12.5
Provides
This package is auto-updated.
Last update: 2026-08-18 11:44:00 UTC
README
Doctrine ORM/DBAL adapters for coolms/entity.
Provides the virtual package coolms/entity-persistence-implementation.
Mapping\ExtrasFieldMappingDriver-- decorates the central metadata driver to surface generatedv_{name}virtual columns, so extras fields are filterable and sortable through an index rather than a JSON scan. Uses a DBAL connection rather than an ORM repository, because the ORM needs metadata to boot.Mapping\TraitMappingDriver-- reads column attributes declared on traits.Listener\ExtrasValidationListener-- enforcesrequiredextras fields on persist and update. Opt-in per alias: enforcing an alias rejects writes that succeeded before, so it is a data migration rather than a flag flip.Schema\Platform\*,Upsert\Platform\*-- per-platform DDL and upsert emitters (PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle).Tree\*-- nested-set and materialized-path operators. Registered explicitly per consuming module: the constructors take the entity class and tree expressions, which autowiring cannot fill.Repository\DoctrineEntitySchemaProvider-- the only class that reads Doctrine ORM metadata for entity introspection; everything above it depends on theEntitySchemaProviderInterfacecontract.
Installation
composer require coolms/entity-doctrine