title: Core Data: object in a predicate
body: <p>In my core data object model I have 3 entities with appropriate relationships so that MyObject can have many MyObjectProperties, and each property can have one MyObjectPropertyImage.</p>
  
  <p>Given a myObject I want to fetch all the images.</p>
  
  <p>I try to do it using the following predicate, however I get an empty array:</p>
  
  <pre><code>[NSEntityDescription entityForName:@"MyObjectPropertyImage" inManagedObjectContext:managedObjectContext];
  [NSPredicate predicateWithFormat:@"ANY myObjectProperty.myObject == %@", myObject];
  </code></pre>
  
  <p>Any ideas?</p>