Creates a new instance of the persistent CFC with the entity name that you provide.
entityNew(entityName [,properties [,ignoreExtras]])
returns any
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entityName | string | Yes | Entity name of the persistent CFC. | |
| properties | struct | No | Key-value pair (CF struct) of property names and values. | |
| ignoreExtras | boolean | No | false | No Help Available |
Use entityNew to get a new instance of an Employee entity.
var employee = entityNew("Employee");