Skip to content

Releases: ahmed-bhs/doctrine-doctor

v1.0.0 - First Stable Release

30 Dec 13:15

Choose a tag to compare

πŸŽ‰ Doctrine Doctor v1.0.0 - First Stable Release

Runtime Analysis Tool for Doctrine ORM integrated into Symfony Web Profiler.

πŸš€ Highlights

  • 66 specialized analyzers detecting performance issues, security vulnerabilities, and code quality problems
  • Real-time detection in Symfony Web Profiler with backtrace support
  • Production-ready with all CI jobs passing (PHPStan Level 8, PHPMD, ECS, Deptrac, PHPUnit)
  • PHP 8.2+ support with compatibility for PHP 8.3 and 8.4

πŸ“‹ Requirements

  • PHP 8.2+ (upgraded from 8.1)
  • Symfony 6.0+ | 7.x
  • Doctrine ORM 2.10+ | 3.x | 4.x

πŸ”§ Installation

composer require --dev ahmed-bhs/doctrine-doctor

Auto-configured via Symfony Flex - no manual setup required!

✨ What's New

CI & Quality Improvements

  • βœ… All 9 CI jobs passing
  • Fixed PHP 8.4 compatibility (PHPUnit buffer handling)
  • Optimized PHPMD thresholds for analyzer complexity
  • Fixed Markdown linting across all documentation

Documentation Updates

  • Updated badges: PHP 8.2+, Symfony 6.0+, PHPStan Level 8
  • Corrected 7 default threshold values (n_plus_one: 5, slow_query: 100ms, etc.)
  • Added 8 missing analyzers:
    • NestedRelationshipN1Analyzer - Detects multi-level N+1 query chains
    • UnusedEagerLoadAnalyzer - Finds unused JOIN FETCH (30-70% memory reduction)
    • FlushInLoopAnalyzerModern - Refactored flush-in-loop detection
    • CascadeAnalyzer (Unified) - Single analyzer for all cascade issues
    • Internal SQL parsing utilities (SqlAggregationAnalyzer, SqlConditionAnalyzer, SqlPerformanceAnalyzer)
    • Enhanced CollationAnalyzer with platform-specific details
  • Removed unimplemented features documentation

Dependency Updates

  • Minimum PHP version: 8.1 β†’ 8.2
  • Added symfony/var-exporter constraint (^6.4|^7.0) for Doctrine ORM compatibility
  • Updated phpmyadmin/sql-parser to ^6.0

πŸ“Š Analyzer Categories

  • Performance (25 analyzers): N+1 queries, missing indexes, slow queries, hydration issues
  • Security (4 analyzers): DQL/SQL injection, sensitive data exposure
  • Code Quality (29 analyzers): Cascade config, type mismatches, architectural violations
  • Configuration (8 analyzers): Charset, timezone, Gedmo traits, database setup

πŸ“– Documentation

πŸ”— Links

πŸ“ Full Changelog

See all commits since v1.1.0-alpha.3


Created by Ahmed EBEN HASSINE