Back
dataSource()
Use this method to override the data source connection information for this model.
// In models/User.cfc. config() { // Tell Wheels to use the data source named `users_source` instead of the default one whenever this model makes SQL calls. dataSource("users_source"); }
Copied!