Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[DoctrineBridge] Various fixes and hardenings#64255

Merged
nicolas-grekas merged 1 commit into
symfony:8.1symfony/symfony:8.1from
nicolas-grekas:81-fixes-doctrine-bridgenicolas-grekas/symfony:81-fixes-doctrine-bridgeCopy head branch name to clipboard
May 18, 2026
Merged

[DoctrineBridge] Various fixes and hardenings#64255
nicolas-grekas merged 1 commit into
symfony:8.1symfony/symfony:8.1from
nicolas-grekas:81-fixes-doctrine-bridgenicolas-grekas/symfony:81-fixes-doctrine-bridgeCopy head branch name to clipboard

Conversation

@nicolas-grekas
Copy link
Copy Markdown
Member

Q A
Branch? 8.1
Bug fix? yes
New feature? yes
Deprecations? no
Issues -
License MIT

This commit bundles several small fixes and hardenings in the Doctrine bridge:

  • Console EntityValueResolver: add support for #[Option] parameters (previously only #[Argument] was resolved). Expression-language variables now also expose $input->getOptions().
  • EntityValueResolverTrait: remove dead metadata-filter branch in buildCriteriaFromMapping — the guard null === $options->mapping was unreachable from both call sites.
  • MapEntity: document the kebab-case transformation applied to argument/option names by the Console resolver (e.g. userIduser-id).
  • RegisterMappingsPass: fix typo in deprecation message ("alias are" → "aliases are").
  • DoctrineType (Form): drop unreachable default branch in the uid_format match — already validated by setAllowedValues.
  • DoctrinePingConnectionMiddleware: in multi-EM mode (no explicit entityManagerName), ping every manager so healthy ones still get reset even if a secondary connection fails. The first failure is rethrown at the end so the worker still retries the message.

@chalasr
Copy link
Copy Markdown
Member

chalasr commented May 18, 2026

Console EntityValueResolver: add support for #[Option] parameters (previously only #[Argument] was resolved).

Do you have a use case in mind for this? I couldn't think of one at the time, and still struggle to.

@nicolas-grekas
Copy link
Copy Markdown
Member Author

app:moderate --user=42 --post=123 --reason=spam ?

app:report:generate [--user=ID]?

@nicolas-grekas nicolas-grekas merged commit 640ba19 into symfony:8.1 May 18, 2026
8 of 12 checks passed
@nicolas-grekas nicolas-grekas deleted the 81-fixes-doctrine-bridge branch May 18, 2026 17:34
@fabpot fabpot mentioned this pull request May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.