Factory class for generating instances of Select, Insert, Update, Delete queries.
Extends the Cake\Database\Query\SelectQuery class to provide new methods related to association loading, automatic fields selection, automatic type casting and to wrap results into a specific iterator that will be responsible for hydrating results if required.
Non-hydrating SelectQuery variant. Always returns arrays.
Behaves exactly like SelectQuery->disableHydration() at runtime — it is
fully substitutable for {@see SelectQuery} (eager loading, association
finders and the rest of the ORM may treat it like any other select query).
Its sole purpose is the static type: because it extends
SelectQuery<array<string, mixed>>, first() / firstOrFail() / all() /
toArray() / iteration resolve to arrays instead of entity|array, and
that binding survives finder dispatch where a bare generic annotation would
decay.
Use {@see \Cake\ORM\Table::unhydratedFind()} as the entry point. This class is the
type-safe replacement for SelectQuery->disableHydration(), which becomes
a hard error in 6.0.
Trait with common methods used by all ORM query classes.