You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[NFR]: make:model for a table in another schema #69
make:model reads only the default schema of the connection. devtools had --schema: it read a table from another schema (a PostgreSQL schema, or another database on the MySQL server) and wrote setSchema() in initialize().
Scope
A schema for make:model and make:model --all: an option, a models.schema key in crest.php, or both.
ModelProperties, ForeignKeys, ModelTables and ModelRelations read the tables, columns and keys of that schema (the Phalcon adapters take a $schema argument).
The base gets setSchema() in initialize().
A rule for a foreign key to a table in another schema.
SQLite has no schemas: crest stops with a message.
config:show shows the setting, if it is a models key.
Tests on PostgreSQL, MySQL and MariaDB, on v5 and v6.
Open
An option, a models.schema key, or both.
The rule for a key to another schema: skip it with a reason, or follow it.
Done when
crest make:model invoices for the schema billing writes a model with setSchema('billing'), and Phalcon reads a row and its related rows through it, on PostgreSQL and MySQL.
Activity
niden commentedon Nov 10, 2026
Resolved in #76