mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Merge pull request #1285 from mdarse/es-bulk-throw-error
Throw on failing bulk operation item
This commit is contained in:
@@ -26,7 +26,7 @@ class BulkOperation
|
|||||||
private $flushLimit = 1000;
|
private $flushLimit = 1000;
|
||||||
private $throwOnError;
|
private $throwOnError;
|
||||||
|
|
||||||
public function __construct(Client $client, $throwOnError = false)
|
public function __construct(Client $client, $throwOnError = true)
|
||||||
{
|
{
|
||||||
$this->client = $client;
|
$this->client = $client;
|
||||||
$this->throwOnError = $throwOnError;
|
$this->throwOnError = $throwOnError;
|
||||||
|
Reference in New Issue
Block a user