Return to v2.0 docs

validationTypeForProperty()


Model Class Miscellaneous Functions any model


Returns the validation type for the property.

Name Type Required Default Description
property string Yes Name of column to retrieve data for.
// first name is a varchar(50) column
employee = model("employee").new();
<!--- would output "string"--->
#employee.validationTypeForProperty("firstName")#

Related Functions

Miscellaneous Functions