LogoRobo.js
Framework

RelationField

Class: RelationField

Relation field builder for model relationships.

Constructors

new RelationField()

new RelationField(
   type, 
   model, 
   foreignKey?): RelationField

Parameters

ParameterType
typeRelationType
modelstring
foreignKey?string

Returns

RelationField

Properties

PropertyModifierType
_defreadonlyRelationDef
_isRelationreadonlytrue

Methods

onDelete()

onDelete(action): this

Set the delete behavior for this relation.

Parameters

ParameterType
actionOnDeleteAction

Returns

this

On this page