@staticmethod<EOL><INDENT>def _doCascadeFetch(obj):<DEDENT>
obj.validateModel()<EOL>if not obj.foreignFields:<EOL><INDENT>return<EOL><DEDENT>NOTE: Currently this fetches using one transaction per object. Implementation for actual resolution is in<EOL><INDENT>IndexedRedisModel.__getattribute__ <EOL><DEDENT>for foreignField in obj.foreignFields:<EOL><INDENT>subObjsData = object.__getattribute__(obj, foreignField)<EOL>if not subObjsData:<EOL><INDENT>setattr(obj, str(foreignField), irNull)<EOL>continue<EOL><DEDENT>subObjs = subObjsData.getObjs()<EOL>for subObj in subObjs:<EOL><INDENT>if isIndexedRedisModel(subObj):<EOL><INDENT>IndexedRedisQuery._doCascadeFetch(subObj)<EOL><DEDENT><DEDENT><DEDENT>
_doCascadeFetch - Takes an object and performs a cascading fetch on all foreign links, and all theirs, and so on.

@param obj <IndexedRedisModel> - A fetched model