EntityNew()
Creates a new instance of the persistent CFC with the entity name that you provide.
EntityNew( entityName=string, properties=struct );
Returns: any
| Argument | Description |
|---|---|
|
entityName
string,
required
|
edit
Name of the instance being created. |
|
properties
struct,
optional
|
edit
a struct containing data to populate the entity properties. |
Examples
editobj = EntityNew("test",{col1:'test3',col2:'test4'});
result = EntityLoadByExample(obj,true);
See also
- ORM
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)