Issue #1851398 by stefan.r, heddn, wiifm: PDOException:Invalid text representation when attempting to load an entity with a string ID