DDC-977: Allow for multiple filters to be set from the command line
#5,511 opened on Jan 11, 2011
Repository metrics
- Stars
- (10,176 stars)
- PR merge metrics
- (Avg merge 29d 6h) (13 merged PRs in 30d)
Description
Jira issue originally created by user skl:
I'm working with an existing database with a large number of tables, I would like to generate metadata mappings for a subset of tables using the command below. The Doctrine code states that the 'filter' option should be an array but there doesn't seem to be any way to pass in an array from the command line? Is the command below the syntax intended for the filter option? If so this may be a Symfony issue?
Command php doctrine.php orm:convert-mapping --filter="TableOne" --filter="TableTwo" --from-database xml /Path/To/Metadata
Expected result Processing entity "TableOne" Processing entity "TableTwo" Exporting "xml" mapping information to "/Path/To/Metadata"
Actual result Processing entity "TableTwo" Exporting "xml" mapping information to "/Path/To/Metadata"
Relevant code http://j.mp/eJD963 (Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php) http://j.mp/f1ADXm (Symfony/Component/Console/Input/ArgvInput.php)