This will remove all the entries with the specified relation/collection name in the specified component.
ormEvictCollection(componentName,relationName,[id])
Lucee Function Reference
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 | Entity name |
collectionName | String | Yes | Name of the collection in the component |
primaryKey | String | No | Primary key of the collection or association data of the entity |