mothership-ec / cog

Cog
Other
2 stars 3 forks source link

Result::bindTo() now accepts a cache to load from #458

Closed kuiche closed 9 years ago

kuiche commented 9 years ago

This allows a Collection cache to be passed to the Result::bindTo() method. This lowers the number of instances of objects loaded (memory saving, yay!) as well as preventing multiple lazy load calls. Once a object is loaded in in all it's glory and cached, that is where it stays.