Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA4
    • Fix Version/s: 2.0-BETA1
    • Component/s: Mapping Drivers, ORM, Tools
    • Security Level: All
    • Labels:
      None

      Description

      It seems that we have to support much duplicated code to detect paths and such things just because we default to an unconfigured Annotation Driver.

      We could get rid of lots of code in Doctrine\ORM\Tools\ and get rid of the problem having to specify mapping paths on the CLi or in the configuration (cli-config.php) like its discussed in DDC-502.

      1. Make specifying the Mapping Driver a requirement to the user
      2. Add a factory method to AnnotationDriver for ease of use (AnnotationReader configuration)
      3. Change documentation for this

        Issue Links

          Activity

          Hide
          Benjamin Eberlei added a comment -
          Show
          Benjamin Eberlei added a comment - The following two commits change this: Make Mapping Driver a requirement: http://github.com/beberlei/doctrine2/commit/6e5b1bbe60a24dec888d99881aa4960d23dfaf9d Change all Commands to use CMF: http://github.com/beberlei/doctrine2/commit/700060cfb27f3b44f8fce811be35d234fd42bc1c
          Hide
          Benjamin Eberlei added a comment -

          Syntax would now look like:

          benny@benny-pc:~/code/php/wsnetbeans/DoctrineTests/Annotations$ doctrine orm:generate-proxies --filter Us targets/
          Processing entity "User"
          
          Proxy classes generated to "/home/benny/code/php/wsnetbeans/DoctrineTests/Annotations/targets"
          benny@benny-pc:~/code/php/wsnetbeans/DoctrineTests/Annotations$ doctrine orm:generate-proxies --filter Usar targets/
          No Metadata Classes to process.
          benny@benny-pc:~/code/php/wsnetbeans/DoctrineTests/Annotations$ doctrine orm:generate-proxies --filter Usar --filter User targets/
          Processing entity "User"
          
          Proxy classes generated to "/home/benny/code/php/wsnetbeans/DoctrineTests/Annotations/targets"
          
          Show
          Benjamin Eberlei added a comment - Syntax would now look like: benny@benny-pc:~/code/php/wsnetbeans/DoctrineTests/Annotations$ doctrine orm:generate-proxies --filter Us targets/ Processing entity "User" Proxy classes generated to "/home/benny/code/php/wsnetbeans/DoctrineTests/Annotations/targets" benny@benny-pc:~/code/php/wsnetbeans/DoctrineTests/Annotations$ doctrine orm:generate-proxies --filter Usar targets/ No Metadata Classes to process. benny@benny-pc:~/code/php/wsnetbeans/DoctrineTests/Annotations$ doctrine orm:generate-proxies --filter Usar --filter User targets/ Processing entity "User" Proxy classes generated to "/home/benny/code/php/wsnetbeans/DoctrineTests/Annotations/targets"
          Hide
          Benjamin Eberlei added a comment -

          Implemented

          Show
          Benjamin Eberlei added a comment - Implemented

            People

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

              Dates

              • Created:
                Updated:
                Resolved: