We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Something like this possible, where we can still have a CDQ object when querying on a relationship?
# store and product are both models # expensive is a scope Store.first.products.expensive
This throws an undefined methodexpensive' for #<_NSNotifyingWrapperMutableSet:0x11f8db930>>`
undefined method
The text was updated successfully, but these errors were encountered:
That should work if expensive is defined for Product
Sorry, something went wrong.
Hmm, I've tried and never gotten it to work. Maybe someone can confirm it working for them. Here's examples w/ removing scopes to make it simpler:
Cannot chain on this.
Account.first.transactions # => #<_NSNotifyingWrapperMutableSet:0x111fb0470>
Can chain normally on this.
Account.all # #<CDQ::CDQTargetedQuery:0x11333ec00 @entity_description=#<NSEntityDescription:0x11357f980> @target_class=Account @context=nil @predicate=nil @limit=nil @offset=nil @sort_descriptors=[] @saved_key=nil>
This crashes the app.
Account.first.transactions.all
No branches or pull requests
Something like this possible, where we can still have a CDQ object when querying on a relationship?
This throws an
undefined method
expensive' for #<_NSNotifyingWrapperMutableSet:0x11f8db930>>`The text was updated successfully, but these errors were encountered: