Qualifier Evaluation Problem
Qualifier Evaluation Problem
- Subject: Qualifier Evaluation Problem
- From: Henrique Prange <email@hidden>
- Date: Wed, 28 Mar 2012 15:00:12 -0300
Hi there,
I'm trying to fix a problem in WOUnit, but it seems to be a bug in the core qualifier evaluation for objects in memory. Here is a sample code that demonstrates the problem:
Page page = Page.createPage(editingContext);
page.setEmpty(true);
Book book = Book.createBook(editingContext);
book.addToPagesRelationship(page);
// Get all books with empty pages
EOQualifier qualifier = Book.PAGES.append(Page.EMPTY).isTrue();
NSArray<Book> result = ERXQ.filtered(new NSArray<Book>(book), qualifier);
The result array should contain the Book I've just created, but the array returned is empty. :(
Is there an alternative way to evaluate the qualifier in memory? Should I create the qualifier in a different manner? Any clues on how could I fix this problem without writing my own qualifier evaluator?
Cheers,
Henrique
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden