function(type, rel) {
			var objDesc = sforce.db.schema[type];
			for(var i = 0; i < objDesc.childRelationships.length; i++)
				if(objDesc.childRelationships[i].relationshipName === rel)
					return;
			throw 'No child relationship exists by the name: ' + rel + 'in the type: ' + type;
		}
function(type, rel) {
			var objDesc = sforce.db.schema[type];
			for(var i = 0; i < objDesc.childRelationships.length; i++)
				if(objDesc.childRelationships[i].relationshipName === rel)
					return;
			throw 'No child relationship exists by the name: ' + rel + 'in the type: ' + type;
		}
function ( type , rel ) { var objDesc = sforce . db . schema [ type ] ; for ( var i = 0 ; i < objDesc . childRelationships . length ; i ++ ) if ( objDesc . childRelationships [ i ] . relationshipName === rel ) return ; throw 'No child relationship exists by the name: ' + rel + 'in the type: ' + type ; }
Validates a relationship name against a type in the schema
Validates a relationship name against a type in the schema