Return intval from getID()

This commit is contained in:
Mikael Nordfeldth 2016-02-08 12:21:46 +01:00
parent 2938b3e960
commit 3dea259f52

View File

@ -409,8 +409,7 @@ abstract class Managed_DataObject extends Memcached_DataObject
throw new Exception('Empty ID for object! (not inserted yet?).'); throw new Exception('Empty ID for object! (not inserted yet?).');
} }
// FIXME: How about forcing to return an int? Or will that overflow eventually? return intval($this->id);
return $this->id;
} }
// 'update' won't write key columns, so we have to do it ourselves. // 'update' won't write key columns, so we have to do it ourselves.