Skip to content

Commit

Permalink
Added logic to fault any qualifier EOs into the same EC as the cached…
Browse files Browse the repository at this point in the history
… objects will be fetched into to ensure that the qualifier actually works as expected since the cache is doing in-memory filtering instead of database filtering.
  • Loading branch information
avendasora committed Jun 5, 2012
1 parent 6631741 commit 2a5fe02
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ public NSArray<T> allObjects(EOEditingContext ec) {
* @return all objects currently in the cache and unexpired
*/
public NSArray<T> allObjects(EOEditingContext ec, EOQualifier additionalQualifier) {
additionalQualifier = ERXEOControlUtilities.localInstancesInQualifier(ec, additionalQualifier);
ERXExpiringCache<Object, EORecord<T>> cache = cache();
NSArray allKeys = cache.allKeys();
NSMutableArray allObjects = new NSMutableArray(allKeys.count());
Expand Down

0 comments on commit 2a5fe02

Please sign in to comment.