Provided additional parameters to retrieve sub-relations 

Previously, sub-relations were retrieved with only the relation name and attributes. This meant it was not possible to add a criteria or make the relationship refresh. Personally I needed this to sort the relationships retrieved in a particular order. 

Now it is possible to define two other parameters for the sub-relationships which are refresh and params. These two parameters are the same as the ones used by the getRelated method of CActiveRecord. Please find more information here: http://www.yiiframework.com/doc/api/1.1/CActiveRecord#getRelated-detail