Model Class
validationTypeForProperty()
Signature
Section titled “Signature”validationTypeForProperty() — returns any
Available in: model
Category: Miscellaneous Functions
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”// first name is a varchar(50) column
employee = model("employee").new();
<!--- would output "string"--->
#employee.validationTypeForProperty("firstName")#