iphone Programming Glossary: entityc
What's better way to build NSPredicate with to-many deep relationships? http://stackoverflow.com/questions/2006927/whats-better-way-to-build-nspredicate-with-to-many-deep-relationships better way to build NSPredicate with to many deep relationships I have three entities EntityA EntityB and EntityC connected with to many relationships. See schema for details For getting all instance of EntityA which depend from EntityB.name.. @ ANY EntityB.name like 'SomeName' What should be predicate for getting all instance of EntityA which depend from EntityC.name I tried query like @ ANY EntityB.entitiesC.name like 'SomeName' but get exception multiple to many keys not allowed..
Core Data Many-to-Many Relationship NSPredicate http://stackoverflow.com/questions/2822625/core-data-many-to-many-relationship-nspredicate Data Many to Many Relationship NSPredicate I have a data model with a many to many relationship like EntityA EntityB EntityC . I used to query EntityA with different search criteria and I use NSCompoundPredicate with an array of NSPredicate s. On.. and I use NSCompoundPredicate with an array of NSPredicate s. On one of the predicate I wanted to query EntityA using EntityC . I tried to use the following SUBQUERY but it did not work. searchPredicate NSPredicate predicateWithFormat @ 0 SUBQUERY.. SUBQUERY but it did not work. searchPredicate NSPredicate predicateWithFormat @ 0 SUBQUERY EntityB B 0 SUBQUERY B.EntityC EntityC EntityC.name like @ .@count .@count name And I got the following exception Terminating app due to uncaught exception..
|