Global Helpers
model()
Signature
Section titled “Signature”model() — returns any
Available in: controller, model, mapper, migrator, migration, tabledefinition
Category: Miscellaneous Functions
Description
Section titled “Description”Returns a reference to the requested model so that class level methods can be called on it.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | yes | — | Name of the model to get a reference to. |