waaseyaa/entity

Entity type system — types, interfaces, lifecycle, queries. No storage.

Maintainers

Package info

github.com/waaseyaa/entity

pkg:composer/waaseyaa/entity

Statistics

Installs: 4 979

Dependents: 28

Suggesters: 1

Stars: 0

Open Issues: 0

v0.1.0-alpha.105 2026-04-04 17:16 UTC

This package is auto-updated.

Last update: 2026-04-05 01:32:38 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.