Macros collection for converting Structure to Model, for a Green Barrel project.
Macros
Model
Macro for converting Structure to green-barrel Model.
The model can access the database.
The model can create, update, and delete documents in collections.
v1.0.0-betaNot compatible with green-barrel v0.x.x and metamorphose v0.x.x
v0.7.12Fixed README.md.
v0.7.8Fixed validation for multi-select fields.
v0.7.0Added trait Administrator for easier registration of Models in the administration panel.
v0.6.10Added the ability to customize html code for web forms. See documentation: mangoorm > widgets > generatehtmlcode > GenerateHtmlCode > generatehtml().
v0.6.9Rename trait ToModel to Main.
v0.6.0The createdat and updatedat fields are automatically added to the Model. The widget type is inputDateTime and disabled = true, ishide = true. Updated README.md. Updated documentation._
v0.5.4Fixed ModelName::key() method. See documentation: mangoorm > models > ToModel._
v0.5.2Import optimized.
v0.5.0Added model attribute isusehooks. See documentation: mangoorm > models > hooks > Hooks._