getObjectById is a misnomer.  Should be called getObjectByPrimaryKey.