symfony/doctrine-bridge
Symfony Doctrine Bridge connects the Doctrine project with Symfony components, supplying form types, validators, security user providers, event listeners, and other integration code for Doctrine-backed Symfony apps. A core part of the Symfony framework.
EntityUserProvider), whether uniqueness is enforced as a validation constraint (UniqueEntity) rather than ad-hoc repository checks, and whether schema/connection lifecycle is handled by listeners instead of application code.AbstractDoctrineExtension deprecated in 7.4 and removed in 8.0; auto-mapping Doctrine entities to controller arguments removed in 8.0; DBAL 4.5 compatibility churn across 6.4/7.4/8.1. Any team relying on those behaviors has a dated action item.symfony/symfony, so stars, issues, and PRs all accrue to the monorepo. Adoption should be inferred from Symfony/DoctrineBundle usage, not from this repo's counters.Adopt/keep it when:
UniqueEntity validation against a Doctrine repository, entity-backed user providers for Security, Doctrine types for Uid/DayPoint/TimePoint, or schema listeners that respect schema_filter.Look elsewhere when:
unique validation rule and Eloquent scopes already cover the headline use cases.UniqueEntity or a Uid type — against roughly a hundred lines of in-house code. Usually the in-house version wins on cognitive overhead; occasionally the bridge wins on edge cases.symfony/symfony monorepo.AbstractDoctrineExtension and entity-to-controller-argument auto-mapping). If your product cannot absorb those breaks on the framework's schedule, isolate the dependency behind your own adapter.To executives: This is free, MIT-licensed infrastructure maintained by the Symfony core team, and it is already in our dependency tree — we are not deciding whether to adopt it, we are deciding how to keep it current. Cost is zero licenses and zero dedicated headcount; the recurring cost is upgrade coupling, because the component's major versions move with Symfony and PHP. The changelogs show a steady, disciplined bugfix cadence across three supported release lines, which is the signal that matters for a piece of glue code.
To engineering: Treat symfony/doctrine-bridge as framework plumbing with an upgrade contract attached. Pin it to our Symfony line, track the two removals landing in 8.0 (AbstractDoctrineExtension, entity-to-controller-argument auto-mapping) and the DBAL 4.5 compatibility fixes, and verify idle-connection and manager-reset behavior under our worker runtime. Do not extend it, do not fork it, and do not add it to a Laravel service that uses Eloquent — the only defensible Laravel use is cherry-picking one class into a Doctrine-based module, and that should be justified case by case.
How can I help you explore Laravel packages today?