add getRelationsCriteria method, not finished