我需要连接 2 个实体。第一个 - Player
(attr = "name"),第二个 - Profiles
(attr: "player_id", "command_id" 和其他东西)。"player"
Profiles 和 Player 之间存在关系。我想显示个人资料实体,但使用玩家姓名而不是 player_ids。player_id 是[[[_player objectID] URIRepresentation] absoluteString]
. 我该怎么打电话[fetchRequest setPredicate:[NSPredicate predicateWithFormat:@"player_id==player.<object id>"]]
?
问问题
150 次