We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I try to retrieve all clients matching a given email address, so I don't create duplicate clients by accident:
$client = new Client(); $client->setFilter(array("email" => "example@example.com")); $response = $request->getAllAsModel($client);
However, the getAllAsModel() call returns all clients and ignores the filter.
getAllAsModel()
If I change getAllAsModel to getAll, I receive the expected result.
getAllAsModel
getAll
The text was updated successfully, but these errors were encountered:
Same for Transaction objects :-(
Solution: add the following code to the request classes in \Paymill\Models\Request*
case 'getAll': case 'getAllAsModel': // <-- this line is new $parameterArray = $this->getFilter(); break;
Please add this ;-)
Sorry, something went wrong.
Workaround until bug is fixed: call getAll and convert yourself:
$client = new Client(); $client->setFilter(array("email" => "example@example.com")); $response = $request->getAll($client); $clients = []; foreach ($response as $entry) { $clients[] = $r->convertResponse($entry, $client->getServiceResource()); }
+1
No branches or pull requests
I try to retrieve all clients matching a given email address, so I don't create duplicate clients by accident:
However, the
getAllAsModel()
call returns all clients and ignores the filter.If I change
getAllAsModel
togetAll
, I receive the expected result.The text was updated successfully, but these errors were encountered: