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]: Protected model properties with a getter and a setter #70
devtools --get-set wrote protected properties, with a getter and a setter for each column. The bases of crest have public typed properties. A devtools project with such models cannot move to crest: a protected property in the model cannot redeclare a public property of the base, and PHP stops with a fatal error.
Scope
A setting for the whole project in crest.php, as models.camelCase.
With the setting, the base has protected properties, and a get<Name>() and a set<Name>() for each property, named from the property name (so they follow camelCase, --property and the PropertyName attributes).
New MVC fragment stubs for the methods, with the placeholders that a published stub needs.
A change of the setting, or of a property name, prints the Renamed lines for the methods too.
config:show shows the setting.
Docs: how a devtools project with --get-set models moves to crest.
Open
The name of the setting.
The types of the methods, and fluent setters or not.
With the setting, crest make:model users writes a base with protected properties and a getter and a setter for each, Phalcon reads and saves a row through them, and a devtools model with --get-set properties works on the crest base.
Activity
niden commentedon Nov 18, 2026
Resolved in #79