waaseyaa / entity
Entity type system — types, interfaces, lifecycle, queries. No storage.
v0.1.0-alpha.7
2026-03-15 03:34 UTC
Requires
- php: >=8.3
- symfony/event-dispatcher: ^7.3
- symfony/uid: ^7.3
- symfony/validator: ^7.3
- waaseyaa/cache: ^0.1
- waaseyaa/config: ^0.1
- waaseyaa/foundation: ^0.1
- waaseyaa/plugin: ^0.1
- waaseyaa/typed-data: ^0.1
- waaseyaa/validation: ^0.1
Requires (Dev)
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2026-03-15 16:00:33 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.