mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Fix for Issue 30 Invalidating L2 Cache on deletion for referenced
OneToMany relations not working
This commit is contained in:
@@ -1055,7 +1055,7 @@ public class BeanDescriptor<T> {
|
||||
for (int i = 0; i < propertiesOneImported.length; i++) {
|
||||
BeanPropertyAssocMany<?> many = propertiesOneImported[i].getRelationshipProperty();
|
||||
if (many != null) {
|
||||
propertiesOneImported[i].cacheDelete(true, deleteRequest);
|
||||
propertiesOneImported[i].cacheDelete(true, deleteRequest.getBean());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user