use valid type annotation for Entity::$id