Josh Grant
Josh Grant
When using electron-updater on Linux with the AppImage target, this can cause a significant amount of lingering processes on long-running hosts that apply multiple updates
I've tried electron 20-x-y and the 21 alpha, just in case there was any change, [without success](https://github.com/Josh-G/electron-spawn-detached/actions/runs/2804071176).
> The current behaviour using the current mail gem appears to already be what this pull request aims to create @catphish not quite - your example doesn't involve attachments which...
Are you able to accomplish the desired behaviour using a Guzzle middleware/handler? You can then pass this in using `setTransport`. We use this for retrying transitive errors with the API,...
> not able to get the contact or list of contacts You aren't able to pull any contacts at all? If you decode your access token, can you definitely see...
something along the lines of ```php $contactgroup = $xero->loadByGUID('Accounting\\ContactGroup', $contactGroupId); $contactgroup->getContacts()->remove($contactToRemove); // or $contactgroup->getContacts()->removeAt($index); // or $contactgroup->getContacts()->removeAll(); $contactgroup->save(); ``` `getContacts` returns a [`Remote\Collection`](https://github.com/calcinai/xero-php/blob/master/src/XeroPHP/Remote/Collection.php)
That's unfortunate, it looks like ContactGroups API deviates from the usual way of handling Collections: https://developer.xero.com/documentation/api/contactgroups An immediate workaround would be to construct a `Remote\Request` yourself that calls the `DELETE`...
@jarodsmk this line in the README should clarify how to use `saveAll()`: > If you have created a number of objects of the same type, you can save them all...
In regards to deleting a ContactPerson from a Contact, have you tried fetching the resource with `loadByGUID` then either emptying the ContactPerson collection ([`$contact->getContactPersons()->removeAll()`](https://github.com/calcinai/xero-php/blob/b3734ba0fea81cc71006007cf0bfbcb8dcf7b9d4/src/XeroPHP/Remote/Collection.php#L56) or removing a specific record ([`...->remove($record)`](https://github.com/calcinai/xero-php/blob/b3734ba0fea81cc71006007cf0bfbcb8dcf7b9d4/src/XeroPHP/Remote/Collection.php#L44))?
Does it work if you remove all items from the allocations collection first? Based on the original code sample: ```php $overpayment->getAllocations()->removeAll(); $overpayment->addAllocation((new Overpayment\Allocation()) ->setInvoice($invoice) ->setAppliedAmount($amount) ); $application->save($overpayment); ```