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
|
Name of the instance being created. |
properties
struct,
optional
|
a struct containing data to populate the entity properties. |
Examples
obj = EntityNew("test",{col1:'test3',col2:'test4'});
result = EntityLoadByExample(obj,true);
See also
- ORM
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)