diablomedia/doctrine1-bundle
Symfony bundle that integrates Doctrine1 ORM with modern Symfony apps. Configure connections via YAML, get query logging in the profiler/debug toolbar, and support multiple connections with optional query/result caching. Works best with the DiabloMedia Doctrine1 fork.
Architecture fit
This package is not natively compatible with Laravel due to its Symfony-specific dependencies (e.g., Symfony DoctrineBundle, Symfony profiler integration, and bundles.php configuration). Laravel uses its own ecosystem (e.g., Eloquent ORM, Laravel Service Container, and config/app.php), making direct integration challenging. However, the package could be leveraged in a Laravel context if:
Integration feasibility
bundles.php vs. Laravel’s config/app.php.symfony/console or symfony/http-kernel).barryvdh/laravel-debugbar).Technical risk
doctrine1.yaml to Laravel’s config/database.php.Key questions
doctrine/doctrine-bundle-laravel) achieve the same goals with lower integration risk?Doctrine_Cache_Array) interact with Laravel’s query builder and caching layers (e.g., cache() helper)?Stack fit
Migration path
symfony/flex or a standalone kernel) to host Doctrine1 logic.doctrine1.yaml to Laravel’s config/database.php for connection strings.spatie/laravel-debugbar).Compatibility
EventDispatcher and Laravel’s Events system are incompatible without significant abstraction.Sequencing
doctrine/doctrine-bundle-laravel).symfony/console or symfony/http-kernel for hybrid integration.Maintenance
doctrine1.yaml and config/database.php must stay synchronized.autowiring and Laravel’s bindings.doctrine1.yaml and Laravel’s config files.Support
Scaling
Doctrine_Cache_Array may interfere with Laravel’s cache drivers (e.g., Redis, file cache).pdo_pgsql or pdo_mysql with persistent connections).Failure modes
ServiceNotFoundException or BindingResolutionException.Illuminate\Database\Events\ConnectionClosed).How can I help you explore Laravel packages today?