v4.27.2: Adapts to different Doctrine versions
Checks if the `executeStatement` method exists before calling it, and falls back to `executeUpdate` for older Doctrine versions where `executeStatement` is not available. This ensures compatibility with a broader range of Doctrine versions.