Do you see any sane code in which you'd have `$entity->setId( $entityId );`, where the type of the entity is unknown?