entityNew

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

entityNew(entityName) → returns any

entityNew Argument Reference

entityName string
Required

Entity name of the persistent CFC.

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