Skip to content

Fixes with multiple joins and A->B->C joins.

Compare
Choose a tag to compare
@editfmah editfmah released this 17 Jun 21:45
· 165 commits to master since this release

JOIN: Added join tests & fixed bugs with join.

This turned up some faults when you wanted to Query C From A through a B join. So, if you specifically specified the FQ field name it failed, because the ORM attempted to prepend the self.class name.

Structure:
Person->Department->Location

Code example:
Person * p = [[[[[Person query]
joinTo:[Department class] leftParameter:@"department" targetParameter:@"Id"]
joinTo:[Location class] leftParameter:@"Department.location" targetParameter:@"Id"]
fetch]
firstObject];