mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-24 22:34:25 +02:00
DbObject: relax primary key check
This commit is contained in:
parent
9413c8cdbd
commit
a94f5c5969
@ -283,7 +283,7 @@ abstract class DbObject
|
||||
return $this;
|
||||
}
|
||||
|
||||
if ($key === $this->getAutoincKeyName()) {
|
||||
if ($key === $this->getAutoincKeyName() && $this->hasBeenLoadedFromDb()) {
|
||||
throw new IE('Changing autoincremental key is not allowed');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user