From 50dd49c937f4225a82c1dca72a09841e05b45d58 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 8 Oct 2018 08:37:02 +0200 Subject: [PATCH] Automation Objects: allow to change their ID --- library/Director/Objects/DirectorJob.php | 2 ++ library/Director/Objects/ImportSource.php | 2 ++ library/Director/Objects/SyncRule.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/library/Director/Objects/DirectorJob.php b/library/Director/Objects/DirectorJob.php index 5f25610f..1f03ad86 100644 --- a/library/Director/Objects/DirectorJob.php +++ b/library/Director/Objects/DirectorJob.php @@ -22,6 +22,8 @@ class DirectorJob extends DbObjectWithSettings implements ExportInterface protected $autoincKeyName = 'id'; + protected $protectAutoinc = false; + protected $defaultProperties = [ 'id' => null, 'job_name' => null, diff --git a/library/Director/Objects/ImportSource.php b/library/Director/Objects/ImportSource.php index 685b3473..1bb7cbc8 100644 --- a/library/Director/Objects/ImportSource.php +++ b/library/Director/Objects/ImportSource.php @@ -22,6 +22,8 @@ class ImportSource extends DbObjectWithSettings implements ExportInterface protected $autoincKeyName = 'id'; + protected $protectAutoinc = false; + protected $defaultProperties = [ 'id' => null, 'source_name' => null, diff --git a/library/Director/Objects/SyncRule.php b/library/Director/Objects/SyncRule.php index 032da339..5698cc81 100644 --- a/library/Director/Objects/SyncRule.php +++ b/library/Director/Objects/SyncRule.php @@ -20,6 +20,8 @@ class SyncRule extends DbObject implements ExportInterface protected $autoincKeyName = 'id'; + protected $protectAutoinc = false; + protected $defaultProperties = [ 'id' => null, 'rule_name' => null,