ios - NSPredicate for one - to - one relashionships -
i have 2 entities 1 called game
(which has boolean attribute called synchronized
) , 1 called coupon
(witch has boolean attribute called won
) game
, coupon
connected via one-to-one relationship called hascoupon
.
i want fetch games have synchronized = false
, won = true
.
nspredicate(format: "synchronized = false && hascoupon.won = true")
Comments
Post a Comment