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()) {
|
if ($object->hasBeenModified()) {
|
||||||
$existing = $object->hasBeenLoadedFromDb();
|
$existing = $object->hasBeenLoadedFromDb();
|
||||||
|
$object->store($db);
|
||||||
try {
|
|
||||||
$object->store($db);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
if ($this->singleObjectsAreAllowedToFail()) {
|
|
||||||
$failed++;
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
throw $e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($existing) {
|
if ($existing) {
|
||||||
$modified++;
|
$modified++;
|
||||||
|
|
Loading…
Reference in New Issue