entityNew

Creates a new instance of the persistent CFC with the entity name that you provide.

entityNew(entityName [,properties [,ignoreExtras]]) → returns any

entityNew Argument Reference

entityName string
Required

Entity name of the persistent CFC.

properties struct

Key-value pair (CF struct) of property names and values.

ignoreExtras boolean
Default: false

No Help Available

Compatibility

ColdFusion:

Version 9+ This function has been enhanced in ColdFusion 9.0.1 to support multiple data sources in the same application.

Examples sample code invoking the entityNew function

Use entityNew to get a new instance of an Employee entity.

var employee = entityNew("Employee");

Fork me on GitHub