sdispater / orator-cache

This package provides query results caching to the Orator ORM.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.all() method not working when using Orator ORM

joaobarbosa opened this issue · comments

Trying to fetch all records from a model, like this: User.remember(60).all() raises a AttributeError: all.

User.all() is working fine. Also, using User.remember(60).get() is working too.

This is intended.

all() is a Model method. However, as soon as you use the remember() method, you have access to a Builder instance that doesn't have the all() method only the get() one.