calcinai / xero-php

A php library for the Xero API, with a cleaner OAuth interface and ORM-like abstraction.
MIT License
357 stars 256 forks source link

Update Contact.php #899

Closed ghost closed 10 months ago

ghost commented 10 months ago

If we load from xero, we can only ever add new contact persons, I need a way to remove the old contact persons after having loaded a contact. This will accomplish that.

calcinai commented 10 months ago

Cheers for the update. Just our of curiosity, will the ->removeAll() method on the collection not work in your use case?

ghost commented 10 months ago

Yes that will solve the problem, didn't realise that existed. Thanks.