Return intval from getID()
This commit is contained in:
parent
2938b3e960
commit
3dea259f52
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user