SyncRule: proxy expected modifications
This commit is contained in:
parent
e71dcea9d6
commit
afaaf5760d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue