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
namestringyes—The name that you want to use for the column or SQL function result in the CFML code.
columnstringno—The name of the column in the database table to map the property to.
sqlstringno—An SQL expression to use to calculate the property value.
labelstringno—A custom label for this property to be referenced in the interface and error messages.
defaultValuestringno—A default value for this property.
selectbooleannotrueWhether to include this property by default in SELECT statements
dataTypestringnocharSpecify the column dataType for this property
automaticValidationsbooleanno—Enable / disable automatic validations for this property.