{"extended":{"hasExtended":true,"docs":"
property(name [, column, sql, label, defaultValue ]) <!--- Tell Wheels that when we are referring to `firstName` in the CFML code, it should translate to the `STR_USERS_FNAME` column when interacting with the database instead of the default (which would be the `firstname` column) --->\n<cfset property(name="firstName", column="STR_USERS_FNAME")>\n\n<!--- Tell Wheels that when we are referring to `fullName` in the CFML code, it should concatenate the `STR_USERS_FNAME` and `STR_USERS_LNAME` columns --->\n<cfset property(name="fullName", sql="STR_USERS_FNAME + ' ' + STR_USERS_LNAME")>\n\n<!--- Tell Wheels that when displaying error messages or labels for form fields, we want to use `First name(s)` as the label for the `STR_USERS_FNAME` column --->\n<cfset property(name="firstName", label="First name(s)")>\n\n<!--- Tell Wheels that when creating new objects, we want them to be auto-populated with a `firstName` property of value `Dave` --->\n<cfset property(name="firstName", defaultValue="Dave")>"},"hint":"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.","returntype":"","slug":"property","parameters":[{"default":"","required":"Yes","hint":"The name that you want to use for the column or SQL function result in the CFML code.","name":"name","type":"string"},{"default":"","required":"No","hint":"The name of the column in the database table to map the property to.","name":"column","type":"string"},{"default":"","required":"No","hint":"A SQL expression to use to calculate the property value.","name":"sql","type":"string"},{"default":"","required":"No","hint":"A custom label for this property to be referenced in the interface and error messages.","name":"label","type":"string"},{"default":"","required":"No","hint":"A default value for this property.","name":"defaultValue","type":"string"}],"name":"property","availableIn":{},"tags":{"categoryClass":"","sectionClass":"","category":"","section":""}}