You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting the error. Caching should work with first(), looks like a bug crept in. Also, I don't think we are looking at the doesntHave() command when caching things, so that will need to be added.
mikebronner
changed the title
Implement caching for Relationship Absence
Parse doesnhave() condition and add to cache key
Oct 16, 2017
mikebronner
changed the title
Parse doesnhave() condition and add to cache key
Parse doesnthave() condition and add to cache key
Oct 16, 2017
Issue
It has to be created cache for when tried to retrieve from a model, some result that we doesn't want a relationship attached.
For example: Authors that does not have books:
$authors = collect([(new Author)->doesntHave('books')->first()]);
Stack Trace
Currently, if we try to execute the method, we have this stack:
The text was updated successfully, but these errors were encountered: