Skip to content
Corex

TableRepository

Corex\Repositories\TableRepository · class · Core layer

Typed CRUD on a custom table — the only layer that runs the queries (Principle III). Values cast to/from their declared types; every query containing a variable is parameterized via $wpdb->prepare (table/column identifiers are code-defined, never request input). A subclass declares its table() and casts().

__construct(Caster $caster, Migrator $migrator)

Section titled “__construct(Caster $caster, Migrator $migrator)”

where(string $column, mixed $value): array

Section titled “where(string $column, mixed $value): array”