This will remove all the entries with the specified relation/collection name in the specified component.
ormEvictCollection(componentName,relationName,[id])
Lucee Function Reference
Function ORMEVICTCOLLECTION
Example
ormevictcollection(String entityName,String collectionName,[String primaryKey]):void
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
entityName | String | Yes | |
collectionName | String | Yes | |
primaryKey | String | No |