SyncRule: proxy expected modifications

This commit is contained in:
Thomas Gelf 2016-06-25 23:02:36 +02:00
parent e71dcea9d6
commit afaaf5760d
1 changed files with 6 additions and 1 deletions

View File

@ -152,9 +152,9 @@ class SyncRule extends DbObject
$this->last_error_message = null;
} catch (Exception $e) {
throw $e;
$this->sync_state = 'failing';
$this->last_error_message = $e->getMessage();
// TODO: Store last error details / trace?
}
if ($this->hasBeenModified()) {
@ -164,6 +164,11 @@ throw $e;
return $hadChanges;
}
public function getExpectedModifications()
{
return $this->sync()->getExpectedModifications();
}
public function applyChanges()
{
return $this->checkForChanges(true);