mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
clear entry associations before deleting feeds
This commit is contained in:
@@ -112,7 +112,10 @@ public class FeedDAO extends GenericDAO<Feed> {
|
||||
|
||||
List<Feed> list = q.getResultList();
|
||||
int deleted = list.size();
|
||||
delete(list);
|
||||
for (Feed feed : list) {
|
||||
feed.getEntries().clear();
|
||||
delete(feed);
|
||||
}
|
||||
return deleted;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user