Skip to content

Model Configuration

property()

property() — returns void

Available in: model Category: Miscellaneous Functions

Use this method to map an object property to either a table column with a different name than the property or to a SQL expression. You only need to use this method when you want to override the default object relational mapping that Wheels performs.

NameTypeRequiredDefaultDescription
namestringyesThe name that you want to use for the column or SQL function result in the CFML code.
columnstringnoThe name of the column in the database table to map the property to.
sqlstringnoAn SQL expression to use to calculate the property value.
labelstringnoA custom label for this property to be referenced in the interface and error messages.
defaultValuestringnoA default value for this property.
selectbooleannotrueWhether to include this property by default in SELECT statements
dataTypestringnocharSpecify the column dataType for this property
automaticValidationsbooleannoEnable / disable automatic validations for this property.