Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-977

Allow for multiple filters to be set from the command line

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: Git Master
    • Fix Version/s: None
    • Component/s: Tools
    • Security Level: All
    • Labels:
      None
    • Environment:
      OSX, PHP 5.3, MySQL 5.1

      Description

      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)

        Activity

        Stephen Lang created issue -
        Hide
        Stephen Lang added a comment -

        Changed priority to minor.

        Show
        Stephen Lang added a comment - Changed priority to minor.
        Stephen Lang made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Minor [ 4 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 12291 ] jira-feedback [ 13898 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13898 ] jira-feedback2 [ 15762 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15762 ] jira-feedback3 [ 18019 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-977, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Stephen Lang
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: