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

Update Readme #44

Closed
lofye opened this issue Mar 22, 2018 · 1 comment
Closed

Update Readme #44

lofye opened this issue Mar 22, 2018 · 1 comment

Comments

@lofye
Copy link

lofye commented Mar 22, 2018

Could you please include a note about how querying works?
Do query builders return instances of the Child classes, or the table class?
For example, if I have Car and Truck extending Vehicle, and I query the vehicles table, do I get back a 2 instance of Vehicle, or 1 Car and 1 Truck?
Is there anything special we need to do when handling this?
Not knowing the answer to this is making me not want to try this package... but I NEED this package.

@jonspalmer
Copy link
Owner

You get instances of the real classes. Pretty standard behavior of any single table inheritance pattern (in fact its mostly useless if you only get table classes). Please submit a PR with doc changes that you'd find useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants