Skip to content

Release v1.0.3

Choose a tag to compare

@github-actions github-actions released this 27 Jan 13:28

fix: Driver name detection with middleware wrapper

  • Fixed error when getting driver name from wrapped drivers
  • Created getDriverName() helper method that handles AbstractDriverMiddleware
  • Uses reflection to access underlying driver when wrapped
  • Falls back to platform class name inference
  • Compatible with all DBAL versions and middleware configurations
  • Fixes error in diagnose command when using QueryTrackingMiddleware

Closes issue with 'Attempted to call an undefined method named getName'

Changelog

Fixed

  • Driver name detection with middleware - Fixed error when getting driver name from wrapped drivers
    • Fixed "Attempted to call an undefined method named 'getName' of class 'AbstractDriverMiddleware'" error
    • Created getDriverName() helper method in PerformanceController that handles wrapped drivers
    • Uses reflection to access underlying driver when wrapped with middleware
    • Falls back to platform class name inference when direct methods are unavailable
    • Compatible with all DBAL versions and middleware configurations
    • Fixes error in diagnose command when driver is wrapped with QueryTrackingMiddleware

Commits

  • fix: Driver name detection with middleware wrapper (ce23989)