-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Add JSON format option for orm:mapping:describe command output #12071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
greg0ire
merged 2 commits into
doctrine:3.6.x
from
stlgaits:mapping-command-json-output
Jul 23, 2025
Merged
Add JSON format option for orm:mapping:describe command output #12071
greg0ire
merged 2 commits into
doctrine:3.6.x
from
stlgaits:mapping-command-json-output
Jul 23, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment was marked as resolved.
This comment was marked as resolved.
dc3fb09
to
021c815
Compare
I've just updated the command help / description + added autocomplete for --format option (with text as default ) |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
021c815
to
f68b1d3
Compare
greg0ire
reviewed
Jul 12, 2025
greg0ire
reviewed
Jul 12, 2025
greg0ire
reviewed
Jul 12, 2025
45b9e8f
to
915f5ed
Compare
greg0ire
reviewed
Jul 21, 2025
SenseException
requested changes
Jul 21, 2025
ec98aea
to
88c395c
Compare
greg0ire
approved these changes
Jul 22, 2025
SenseException
approved these changes
Jul 22, 2025
Thanks @stlgaits ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following suggestion from doctrine/DoctrineBundle#1883, this PR adds the
--format=json
option to theorm:mapping:describe
command to enable JSON output (hence allowing jq filtering of said-output).For example, when running
symfony console doctrine:mapping:describe App\\Entity\\Book --format=json
, we get the following output :which we can then filter using jq - for example :
will output a simple fieldMapping + typehint list

Bonus small fix of embeddedClasses output which falsely returned subClasses