← Persistence

PERSISTENCE FEATURE

ORM CRUD

Define your schema once with attributes — reads, writes, and soft-deletes are handled by the ORM.

Feature Guide

A quick orientation block that answers the essential questions: what this feature does, how it works, why it matters, and the key concepts behind it.

What this does

Define your schema once with attributes — reads, writes, and soft-deletes are handled by the ORM.

Repository Snapshot

Current product set

A small working dataset backed by the ORM. Create and delete actions update this view.

8 Visible rows
demo Tenant scope
Name Price Status
Portable Monitor $249.99 active
Refactoring $49.99 active
Power Bank $59.99 active
Domain-Driven Design $54.99 active
Head First Design Patterns $49.99 active
Linen Shirt $54.99 active
Winter Jacket $149.99 active
Ergonomic Chair $299.99 active
#[FromTable] #[Column] HasUuidV7 HasTimestamps SoftDeletes DomainRepository

© Jeff Sickel: "Deleted code is debugged code."

Model Implementation slice
<?phpdeclare(strict_types=1);namespace App\Application\Db\Model;use Semitexa\Orm\Attributes\Column;use Semitexa\Orm\Attributes\FromTable;#[FromTable(name: 'products')]final class ProductResource{    #[Column(type: 'uuid')]    public string $id;    #[Column(type: 'varchar', length: 255)]    public string $name;    #[Column(type: 'decimal', precision: 10, scale: 2)]    public string $price;    #[Column(type: 'varchar', length: 32)]    public string $status;}

Support Semitexa
Built for developers who prefer control over magic. Your support helps keep it fast, open, and evolving.

Donate via PayPal