Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name of defined entity must be unique within the plugin scope.

Default value of attribute "auditable" is "false" and the attribute itself is not mandatory. When it's "true" every entity in the database defined by the model will have standard predefined fields: createdate, updatedate, createuser and updateuser. These fields store information about who and when created and last edited the entity.

Code Block
languagexml
themeEclipse
linenumberstrue
<model name="sampleModel"
    auditable="true"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://schema.qcadoo.org/model"
    xsi:schemaLocation="http://schema.qcadoo.org/model http://schema.qcadoo.org/model.xsd">

    <fields>

        // FIELD DEFINITIONS

    </fields>

    <hooks>

        // HOOK DEFINITIONS

    </hooks>

    // IDENTIFIER

</model>

...