waaseyaa / entity
Entity type system — types, interfaces, lifecycle, queries. No storage.
v0.1.0-alpha.218
2026-06-16 01:58 UTC
Requires
- php: >=8.5
- symfony/event-dispatcher: ^7.0
- symfony/uid: ^7.0
- symfony/validator: ^7.0
- waaseyaa/access: ^0.1.0-alpha.218
- waaseyaa/cache: ^0.1.0-alpha.218
- waaseyaa/config: ^0.1.0-alpha.218
- waaseyaa/foundation: ^0.1.0-alpha.218
- waaseyaa/plugin: ^0.1.0-alpha.218
- waaseyaa/typed-data: ^0.1.0-alpha.218
- waaseyaa/validation: ^0.1.0-alpha.218
Requires (Dev)
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^10.5
Suggests
- nesbot/carbon: Optional domain for datetime_immutable cast with domain carbon_immutable (#1183).
This package is auto-updated.
Last update: 2026-06-16 02:03:44 UTC
README
Layer 1 — Core Data
Entity type system for Waaseyaa applications.
Defines EntityInterface, EntityBase, EntityType (with id, label, class, keys, and field definitions), and EntityTypeManager. Entity subclasses accept (array $values) and hardcode their entityTypeId and entityKeys. Use $entity->enforceIsNew() before saving pre-keyed entities to force INSERT over UPDATE.
Key classes: EntityInterface, EntityBase, EntityType, EntityTypeManager, EntityTypeManagerInterface.