Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-502

Remove "mapping-path" from cli schema tool commands

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA4
    • Fix Version/s: 2.0-BETA1
    • Component/s: Tools
    • Security Level: All
    • Labels:
      None

      Description

      Currently the Schema Tool Tasks need the mapping path information.

      That is however only needed for the Annotations driver, the xml and yaml driver already specify all the paths.

      Additionally the annotation path could easily be specified in the HelperSet as an argument.

        Issue Links

          Activity

          Hide
          Benjamin Eberlei added a comment -

          I removed the requirement of specifiying the paths to the mapping files at the CLI.

          1. For File Drivers they are known to the driver
          2. For Annotations they can now be passed as an option to the EntityManagerHelper:

          $mappingPaths = array(__DIR__ . "/entities");
          new EntityManagerHelper($em, $mappingPaths);
          

          This way you have to configure this only once.

          Show
          Benjamin Eberlei added a comment - I removed the requirement of specifiying the paths to the mapping files at the CLI. 1. For File Drivers they are known to the driver 2. For Annotations they can now be passed as an option to the EntityManagerHelper: $mappingPaths = array(__DIR__ . "/entities" ); new EntityManagerHelper($em, $mappingPaths); This way you have to configure this only once.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: