2pisoftware / cmfive

DEPRECATED! Please see https://github.com/2pisoftware/cmfive-core for new version
http://cmfive.com
4 stars 4 forks source link

DbService getObject and getObjects do not sort correctly when values are returned from cache #172

Closed syntithenai closed 8 years ago

syntithenai commented 8 years ago

If I use DbService getObject to load an object and then call getObject with the same where criteria array but a different sort order, the new sort order is not considered in returning an object because it is returned from the cache which doesn't consider ordering.

This problem also exists in getObjects.

syntithenai commented 8 years ago

Have disabled caching where any of limit, order_by or offset are used in getObject, getObjects