GroupMembershipResolver: last inserted ID is int...
...for PostgreSQL - as it should be everywhere :-/ fixes #1500
This commit is contained in:
parent
728bbe523e
commit
9c9a5b5b93
|
@ -565,7 +565,7 @@ abstract class GroupMembershipResolver
|
|||
|
||||
protected function assertBeenLoadedFromDb(IcingaObject $object)
|
||||
{
|
||||
if (! ctype_digit($object->get('id'))) {
|
||||
if (! is_int($object->get('id')) && ! ctype_digit($object->get('id'))) {
|
||||
throw new ProgrammingError(
|
||||
'Group resolver does not support unstored objects'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue