Entity Class
Base model class with "id" column
Item Index
Properties
Methods
getPropInfo
()
PropInfo
public
get an instance of PropInfo, which summarizes properties of this class
Returns:
include
(
Promise(BaseModel)
-
[options]
include all relational models if not set
Parameters:
-
[options]Object optional-
[recursive]Boolean optionalrecursively include models or not
-
Returns:
Promise(BaseModel):
self
inherit
(
BaseModel
-
anotherModel
inherit value of anotherModel
Parameters:
-
anotherModelBaseModel
Returns:
BaseModel:
this
setEntityProp
(
BaseModel
-
prop -
submodel
set related model(s)
Parameters:
-
propStringproperty name of the related model
-
submodelEntity | Array
Returns:
BaseModel:
this
toPlainObject
()
Object
create plain object without relational entities descendants of Entity are removed, but not descendants of BaseModel descendants of Entity in descendants of BaseModel are removed ( = recursive)
Returns:
Object:
plainObject
Properties
id
Any
primary key for the model
