Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for querying objects by class name #1274

Closed
shmidt opened this issue Dec 28, 2014 · 1 comment
Closed

Support for querying objects by class name #1274

shmidt opened this issue Dec 28, 2014 · 1 comment
Assignees

Comments

@shmidt
Copy link

shmidt commented Dec 28, 2014

I have some subclasses of Animal class, like Cats, Dogs, and so on.
I want to make a unified table view controller for all Animal subclasses, and pass class name to it to show Cats or Dogs objects.

Is it possible to do that in current version?

P.S. In CoreData I did it by modifying entityName in fetch request.

@jpsim jpsim self-assigned this Dec 28, 2014
@jpsim
Copy link
Contributor

jpsim commented Dec 28, 2014

This is a limitation both in Realm's inheritance model and in the underlying db representation. We're already tracking this in #1109, so I'll close this as a duplicate to keep the conversation in one place.

@jpsim jpsim closed this as completed Dec 28, 2014
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants