XML Reference

<application-settings>

Configure advanced features.

<application-settings>
  <setting name="Model/AllowAssociationToNonPk" value="true"/>
</application-settings>

<settings>

AttributeDescription
namename of the advanced function
valueconfiguration value
namedescriptiondefault value
Model/Association/AllowAssociationToNonPkAllows association to non primary key fieldsfalse
Model/Association/AllowManyOnInverseSideAllows association to have "many" also on inverse side (for example MongoDB)false
Model/Association/AllowAssociationFieldsAllows association to have bounded fields (for example Doctrine,D2,...)false
Model/Module/DynamicNameDefines module name for specific framework (plugin,bundle,module,package)module
Model/Module/DefaultFileNamePostfixDefines default file name postfix. Used when postfix isn't defined by module properties..dcm (based on ORM)
Model/UniversalObject/AllowAllow working with universal object in project.false
TODO:Model/AllowManyToManytrue

<script-settings>

Configure script system for specific ORM/MVC.

<script-settings>
  <script-file name="Doctrine2.import.osc"/>
  <function type="import-function" name="Doctrine2Import"/>
  <hook type="before-import" name="GedmoExtensionBeforeImport"/>
</script-settings>

<script-file>

AttributeDescription
namescript filename

<function>

AttributeDescription
typefunction type (ORMD enum)
namefunction name
Function typeDescription
import-functionimport ORM definitions to ORMD project
export-functionexport orm definitions from ORMD project
file-scanner-functionscanning directories for all relevant files
get-module-info-functionguessing entities names

<hook>

AttributeDescription
typehook type(used for hook identification)
namefunction name

<import-export-formats>

This configuration element allows to define export formats. In example bellow is configuration for Doctrine2.

<import-export-formats>
  <import-export-format name="Doctrine2Yml" type="directory" caption="Doctrine2 Yml"/>
</import-export-formats>

<import-export-format>

AttributeDescription
nameformat name
typeformat type (see below)
captionformat UI caption
Format typeDescription
directoryexport module as directory with several files
fileexport module as single file

<inheritances-types>

<inheritances-types>
  <inheritance-type name="SINGLE_TABLE" caption="Simple"/>
</inheritances-types>

<inheritance-type>

AttributeDescription
nametype name
captioncaption in editor

<data-types>

<data-types>
  <data-type name="integer" unified-name="@INTEGER,@INT" primary-key-data-type="true"/>
  <data-type name="string" unified-name="@VARCHAR,@CHAR,@LONGVARCHAR"/>
  <container-type name="set"/>
</data-types>

<data-type>

AttributeDescription
nametype name
unified-namelist of posible aliases
has-enum-valuesswich specifying enumeration type
primary-key-data-typeswitch to use as primary key

<container-type>

AttributeDescription
nametype name
unified-namelist of posible aliases

<element-templates>

<element-templates>

  <template name='new-project'>
    <project>...</project>
  </template>

 <template name='association-field'>
    <field name="{inverseEntityName#UL}_{inverseFieldName#UL}"/>
  </template>

</element-templates>

<template>

AttributeDescription
nametemplate name

template-name

TypeDescription
new-projecttemplate is loaded when blank project is created
primary-fieldis for automatic primary key creation in all entities(tables)
association-fielddescribe how association fields are created
many2many-fielddescribe how many-to-many association fields are created
discriminator-fielddefines discriminator field created for inheritance

naming-convention

KeywordDescription
#CFUCamelCaseFirstUpper
#CFLcamelCaseFirstLower
#ULunder_line
#CFUsCamelCaseFirstUpper in plural form
#CFLscamelCaseFirstLower in plural form
#ULsunder_line in plural form