...
name | type | required | default value | description |
---|---|---|---|---|
model | string | yes | none | Name of corresponding model related to this field. |
plugin | string | no | none | Name of plugin where the corresponding model belongs. |
lazy | boolean | no | true | When 'true', entity related to this model will be pulled from database when value of this field is first read. When 'false', corresponding entity is pulled in the same time as entity described in this model. |
unique | boolean | no | false | If true this field will be unique (validator and "unique" database's contraint will be added). |
Example
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<belongsTo name="order" model="order" /> |