mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #12070] Add JSON format option for orm:mapping:describe command output #13448
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/12070
State: closed
Merged: No
Following suggestion from https://github.com/doctrine/DoctrineBundle/issues/1883, this PR adds the
--format=jsonoption to theorm:mapping:describecommand 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
