DDC-510: Refactor Metadata Configuration #5018

Closed
doctrinebot opened this Issue Apr 10, 2010 · 5 comments

2 participants

@doctrinebot

Jira issue originally created by user @beberlei:

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
@doctrinebot

Comment created by @beberlei:

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

@doctrinebot

Comment created by @beberlei:

Syntax would now look like:

benny@benny-pc:<sub>/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:</sub>/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"
@doctrinebot

Comment created by @beberlei:

Implemented

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0-BETA1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment