code: function() {
  				var doc = this;
  				var stack = [];
  
  				_.forEach(model.$oids, function(fkType, schemaPath) {
  					if (fkType.type == 'subDocument') return; // Skip sub-documents (as they are stored against the parent anyway)
  
  					stack = stack.concat(doc.getNodesBySchemaPath(schemaPath)
  						.map(function(node) {
  							node.fkType = fkType.type;
  							return node;
  						})
  					);
  				});
  				return stack;
  			}
docs: Return an array of all OID leaf nodes within the document
  This function combines the behaviour of monoxide.utilities.extractFKs with monoxide.monoxideDocument.getNodesBySchemaPath)
  @return {array} An array of all leaf nodes