Skip to content

Model Configuration

table()

table() — returns void

Available in: model Category: Miscellaneous Functions

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).

NameTypeRequiredDefaultDescription
nameanyyesName of the table to map this model to.