Sync: it's not yet possible to let single...
...objects fail refs #1048
This commit is contained in:
parent
49afcd5855
commit
d8b1207254
|
@ -749,17 +749,7 @@ class Sync
|
|||
|
||||
if ($object->hasBeenModified()) {
|
||||
$existing = $object->hasBeenLoadedFromDb();
|
||||
|
||||
try {
|
||||
$object->store($db);
|
||||
} catch (Exception $e) {
|
||||
if ($this->singleObjectsAreAllowedToFail()) {
|
||||
$failed++;
|
||||
continue;
|
||||
} else {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
if ($existing) {
|
||||
$modified++;
|
||||
|
|
Loading…
Reference in New Issue