Versions Compared

Key

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

belongsTo - many-to-one relation.

Overview

This field represents entity in relation "many-to-one" to this model.

Common Attributes

Insert excerpt

...

Common Model Field Attributes

...

Common Model Field Attributes
nopaneltrue

Attributes

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.
If empty it is assumed that corresponding model belongs to the same plugin that field's model.

lazy

boolean

no

true

When 'falsetrue', entity related to this model will be pulled from database when value of this field is first read. When 'truefalse', 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 with case insensitive).
Should be set to false for copyable (see below) fields (except string and text).

Example

Code Block
theme
themeEclipse
languagexml
Eclipselinenumberstrue

<belongsTo name="order" model="order" />