GroupMembershipResolver: last inserted ID is int...

...for PostgreSQL - as it should be everywhere :-/

fixes #1500
This commit is contained in:
Thomas Gelf 2018-05-25 13:14:03 +02:00
parent 728bbe523e
commit 9c9a5b5b93
1 changed files with 1 additions and 1 deletions

View File

@ -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'
);