Anteris-Dev / autotask-client

An HTTP client for the Autotask API built with PHP.
MIT License
23 stars 16 forks source link

Error recently when trying to search resources. API schema change? #89

Open JasonEde opened 1 year ago

JasonEde commented 1 year ago

Since end of last month on some queries I'm seeing this...

Uncaught Spatie\DataTransferObject\DataTransferObjectError: Public properties payrollIdentifier not found on Anteris\Autotask\API\Resources\ResourceEntity

The query I'm trying to run is...

$res=$client->resources()->query()->where('email','in',$firstline_users)->get();

JasonEde commented 11 months ago

I've got this working. For reference just need to edit vendor/anteris-dev/autotask-client/src/API/Resources/ResourceEntity.php and add a line of public string $payrollIdentifier; just above public int $payrollType;