我有一个数据模型如下。
Chat -> abstract entity
ChatUser -> inhertied from Chat.
-> has a relationship to user model that has a name attribute
ChatGroup -> inherited from Chat
-> has a relationship to group that also has a name attribute.
我需要使用 fetchedresultscontroller 从用户名或组名中获取名称为“ABC”的所有聊天。我似乎无法使用单个谓词来获取它们。有没有办法可以单独获取它们并组合结果。