I have an entity called FObject with several entities, for example Foo1, Foo2 and Foo3. I have several table views that should display information about different sets of entities, for example, one shows only Foo2s and Foo3s, and the other shows all of them.
How to write a predicate for filtering by entity type, given what I retrieve on FObject?
I tried "entity.name IN% @" and provided a list of entity names, but that didn't work.
Or do I just need to filter the returned results?
Or do I need to add an attribute that encodes a type and use "type IN% @"?
source
share