Model Configuration
table()
Signature
Section titled “Signature”table() — returns void
Available in: model
Category: Miscellaneous Functions
Description
Section titled “Description”Use this method to tell Wheels what database table to connect to for this model.
You only need to use this method when your table naming does not follow the standard Wheels convention of a singular object name mapping to a plural table name.
To not use a table for your model at all, call table(false).
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
name | any | yes | — | Name of the table to map this model to. |