EntityNew()

edit

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

edit
obj = EntityNew("test",{col1:'test3',col2:'test4'});
  result = EntityLoadByExample(obj,true);

See also