Skip to content

Fix Doctrine mapping namespaces and declare missing dependencies - #127

Merged
RandyCupic merged 3 commits into
3.0from
fix-mappings-and-deps
Oct 27, 2026
Merged

RandyCupic merged 3 commits into
3.0from
fix-mappings-and-deps

Conversation

@RandyCupic

Copy link
Copy Markdown
Member

Backport of two fixes from #125, both found while installing the bundle into a fresh Symfony app.

  • Doctrine XML mappings now use the correct http://doctrine-project.org/schemas/orm/doctrine-mapping and http://www.w3.org/2001/XMLSchema-instance namespaces. With https://, Doctrine's XML validation rejects the mappings. That validation is on when validate_xml_mapping: true is set, as in the current DoctrineBundle recipe. Both mappings now validate against the Doctrine XSD.
  • symfony/serializer and symfony/translation are now required. The bundle enables the serializer in its prepended framework config, and its controllers depend on the translator service, so a minimal app failed to boot without them.

Existing projects already have both components installed and do not enable XML validation, so this changes nothing for them.

Tests (593) pass on Symfony 5.4 and 6.4. PHPStan and CS are clean.

@RandyCupic
RandyCupic merged commit 458331c into 3.0 Oct 27, 2026
6 checks passed
@RandyCupic
RandyCupic deleted the fix-mappings-and-deps branch October 27, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant