1602/jugglingdb — pull request #141 by sdrdis (2012-11-03 00:43:11+00:00)
Title: Added caching in relationships (+ test cases)

I fixed my sentences + added usage examples in the comments.

Previous message :
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