Miscellaneous
validationTypeForProperty()
Signature
Section titled “Signature”validationTypeForProperty() — returns any
Description
Section titled “Description”Returns the validation type for the property
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
property | string | yes | — | Name of column to retrieve data for. |
Examples
Section titled “Examples”validationTypeForProperty(property) <!--- first name is a varchar(50) column --->
<cfset employee = model("employee").new()>
<!--- would output "string" --->
<cfoutput>#employee.validationTypeForProperty("firstName")>#</cfoutput>