Reference Source
import Model from 'flarum/common/extend/Model'
public class | source

Model

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

hasOnes: *

public

model: *

public

type: *

Method Summary

Public Methods
public

attribute(name: *): *

public

extend(app: *, extension: *)

public

hasMany(type: *): *

public

hasOne(type: *): *

Public Constructors

public constructor() source

Public Members

public attributes: * source

public hasManys: * source

public hasOnes: * source

public model: * source

public type: * source

Public Methods

public attribute(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*

public extend(app: *, extension: *) source

Params:

NameTypeAttributeDescription
app *
extension *

public hasMany(type: *): * source

Params:

NameTypeAttributeDescription
type *

Return:

*

public hasOne(type: *): * source

Params:

NameTypeAttributeDescription
type *

Return:

*