Define Entity

Use when defining ROM Struct attributes, configuring dry-types coercion for entity fields, implementing value-based equality semantics, or setting up a domain model class in Hanami 2.x. Handles creating entity classes, declaring typed attributes, enforcing immutability, configuring the repository struct namespace, and syncing entity definitions with schema changes. Use when working with ROM entity class definitions, persistence layer value objects, ROM relation mappings, or any Hanami 2.x domain model backed by rom-rb.

igmarin da50a6a 2 files · 4.3 KB Updated

File contents

igmarin/hanakai-yaku/tree/main/skills/db/define-entity commit da50a6ae31

Frequently asked questions

npx skillmds@latest add igmarin/define-entity