You are viewing documentation for v1.1.x. Change

columnForProperty()

Description

Returns the column name mapped for the named model property.

Function Syntax

columnForProperty(property)

Parameters

Parameter Type Required Default Description
property string Yes Name of property to inspect.

Examples

<!--- 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 --->