entityNew

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

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

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");

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub