Returns the column name mapped for the named model property.
Name | Type | Required | Default | Description |
---|---|---|---|---|
property | string | Yes | Name of property to inspect. |
columnForProperty(property) <!--- Get an object, set a value and then see if the property exists ---> <cfset employee = model("employee").new()> <cfset employee.columnForProperty("firstName")><!--- returns column name, in this case "firstname" if the convention is used --->