I've this object relation:
Group_Test__c <---> AssociationGroupOrder <--> Order
So I can have a N:N realtion between Groups and Orders.
I'm working with the PHP Toolkit.
Insert records into AssociationGroupOrder is easy, just with:
$mySforceConnection = new SforceEnterpriseClient(); $mySoapClient = $mySforceConnection->createConnection(SOAP_CLIENT_BASEDIR.'/wsdlSF.xml'); $mylogin = $mySforceConnection->login(USERNAME, PASSWORD); $records = array(); //Insert a relationhsip record between Group & Order $records = new stdclass(); $records->Order__c = $orderId; $records->Group__c = $groupId; $response = $mySforceConnection->create($records, 'AssociationGroupOrder__c');
But, how can I delete a record? As far as I've seen, the SforceEnterpriseClient() class doesn't have a method for it...and it seems that the SOQL neither have a DELETE action in order to accomplish what I need, or am I wrong?
I thougth it would be easy (having the order ID and the group ID) to delete a record. But I can't find the solution...