-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.0
-
Fix Version/s: 2.1.1
-
Component/s: Nuxeo Platform Compat
Calling the operation "Blob.GetList" like
$client->automation('Blob.GetList')->input($uidDoc)->execute(Blobs::class);
produces this error
[2021-04-02 17:26:35] nxPHPClientLogger.INFO: PASUP-TMARTINS2 GuzzleHttp/6.3.3 PHP/7.4.9 - [02/Apr/2021:17:26:35 +0200] "POST /nuxeo/api/v1/automation/Blob.GetList HTTP/1.1" 200 [] [] PHP Fatal error: Uncaught Nuxeo\Client\Spi\ClassCastException: Cannot cast Nuxeo\Client\Objects\Blob\Blob as Nuxeo\Client\Objects\Blob\Blobs in /opt/greetings/vendor/nuxeo/nuxeo-php-client/src/Nuxeo/Client/Spi/Objects/AbstractConnectable.php:127 Stack trace: #0 /opt/greetings/vendor/nuxeo/nuxeo-php-client/src/Nuxeo/Client/Objects/Operation.php(131): Nuxeo\Client\Spi\Objects\AbstractConnectable->getResponseNew() #1 /opt/greetings/vendor/nuxeo/nuxeo-php-client/src/Nuxeo/Client/Objects/Operation.php(108): Nuxeo\Client\Objects\Operation->execute() #2 /opt/greetings/src/HelloWorld/Greetings.php(27): Nuxeo\Client\Objects\Operation->execute() #3 /opt/greetings/tests/test.php(8): HelloWorld\Greetings::sayHelloWorld() #4 {main} thrown in /opt/greetings/vendor/nuxeo/nuxeo-php-client/src/Nuxeo/Client/Spi/Objects/AbstractConnectable.php on line 127