Expand description
§Macro
For converting structure to green-barrel model.
§Usage:
§Model parameters
( all parameters are optional )
| Parameter: | Default: | Description: |
|---|---|---|
| db_query_docs_limit | 1000 | limiting query results. |
| is_add_doc | true | Create documents in the database. false - Alternatively, use it to validate data from web forms. |
| is_up_doc | true | Update documents in the database. |
| is_del_doc | true | Delete documents from the database. |
| ignore_fields | empty string | Fields that are not included in the database (separated by commas). |
| is_use_addition | false | Allows methods for additional actions and additional validation. |
| is_use_hooks | false | Allows hooks methods - impl Hooks for ModelName. |
Attribute 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.