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
crest make:model <table> reads a table from the database of the project and writes a model class (devtools model). A model belongs to no flavor, so the command works in MVC and in ADR projects.
Scope
A property for each column.
initialize() with setSource().
The default path model.
An existing file stops the command, unless --force is given.
Clear errors for no connection and for a table that does not exist.
The tests use SQLite.
Open
Where crest gets the connection: a database key in crest.php, the .env file, or the db service of the project.
Typed properties, or docblock types only.
The default folder for each flavor.
The databases: MySQL, PostgreSQL, SQLite.
Done when
crest make:model users writes a Users model with a property for each column, and the model reads a row from the table.
Activity
niden commentedon Oct 15, 2026
Resolved in #63