• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Qualifier Evaluation Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Qualifier Evaluation Problem
      • From: Kieran Kelleher <email@hidden>
  • Prev by Date: Re: Most requested stuff on Google Moderator
  • Next by Date: Re: Getting your git chops on
  • Previous by thread: Re: Getting your git chops on
  • Next by thread: Re: Qualifier Evaluation Problem
  • Index(es):
    • Date
    • Thread