Skip to content

Global Helpers

model()

model() — returns any

Available in: controller, model, mapper, migrator, migration, tabledefinition Category: Miscellaneous Functions

Returns a reference to the requested model so that class level methods can be called on it.

NameTypeRequiredDefaultDescription
namestringyesName of the model to get a reference to.