1602/jugglingdb — pull request #140 by sdrdis (2012-11-01 00:34:38+00:00)
Title: Added caching in relationships (+ test cases)

Don't hesitate to comment since I might have done some mistakes :).

For the belongsTo relationship ;
* I added a optional parameter refresh which allows to force refresh
* If the relation was loaded before and refresh is false or not set, then relation is loaded from cache

For the hasMany relationship ;
* the first parameters can be either condition or refresh
* if the relation was loaded before AND refresh is false or not set AND condition is not set, then relation is loaded from cache