You can use
to accomplish this.
Have a look here at how I use it to unit test the DataTransform API
https://github.com/tsolucio/coreBOSTests/blob/master/include/Webservices/DataTransformTest.php#L55
basically get the webservice object for invoice and pass it into sanitizeReferences with the data array
PHP Code:
DataTransform::sanitizeReferences()
to accomplish this.
Have a look here at how I use it to unit test the DataTransform API
https://github.com/tsolucio/coreBOSTests/blob/master/include/Webservices/DataTransformTest.php#L55
basically get the webservice object for invoice and pass it into sanitizeReferences with the data array
Joe
TSolucio
TSolucio