waaseyaa / entity
Entity type system — types, interfaces, lifecycle, queries. No storage.
v0.1.0-alpha.256
2026-07-06 21:24 UTC
Requires
- php: >=8.5
- symfony/event-dispatcher: ^7.0
- symfony/uid: ^7.0
- symfony/validator: ^7.0
- waaseyaa/access: ^0.1.0-alpha.256
- waaseyaa/cache: ^0.1.0-alpha.256
- waaseyaa/config: ^0.1.0-alpha.256
- waaseyaa/field: ^0.1.0-alpha.256
- waaseyaa/foundation: ^0.1.0-alpha.256
- waaseyaa/plugin: ^0.1.0-alpha.256
- waaseyaa/typed-data: ^0.1.0-alpha.256
- waaseyaa/validation: ^0.1.0-alpha.256
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-07-06 21:32:21 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.