1. Home
  2. Docs
  3. Compiler
  4. Schema (XML)
  5. Behavior element

Behavior element

The behavior element brings features to the model by modifying the models, views and controllers.

They can be added in the <database> or <table> element. <database> behaviors affects all tables.

<behavior
  name = "/AddValidators|TableStamp|GoatCheese/"]
>
  <parameter
    name = "/sting/" value="/string|JSON/"]
  >
  ...
</table>

Only the GoatCheese and TableStamp behavior has parameters.

parameters value will always take a string but for can contain JSON.
JSON value must be between single quote ' to validate.

How can we help?

Leave a Reply