Return to v2.5.0 docs


Model Configuration Miscellaneous Functions void model

Use this method to tell CFWheels 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 CFWheels 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).

Name Type Required Default Description
name any Yes Name of the table to map this model to.
// In models/User.cfc.
function config() {
	// Tell Wheels to use the `tbl_USERS` table in the database for the `user` model instead of the default (which would be `users`).

Related Functions

Miscellaneous Functions