DDC-510: Refactor Metadata Configuration #634

Closed
opened 2026-01-22 12:45:17 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Apr 10, 2010).

Originally assigned to: @beberlei on GitHub.

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
Originally created by @doctrinebot on GitHub (Apr 10, 2010). Originally assigned to: @beberlei on GitHub. 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](http://www.doctrine-project.org/jira/browse/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
admin added the Improvement label 2026-01-22 12:45:17 +01:00
admin closed this issue 2026-01-22 12:45:18 +01:00
Author
Owner

@doctrinebot commented on GitHub (Apr 10, 2010):

@doctrinebot commented on GitHub (Apr 10, 2010): - relates to [DDC-502: Remove "mapping-path" from cli schema tool commands](http://www.doctrine-project.org/jira/browse/DDC-502)
Author
Owner

@doctrinebot commented on GitHub (Apr 11, 2010):

Comment created by @beberlei:

The following two commits change this:

Make Mapping Driver a requirement:
6e5b1bbe60

Change all Commands to use CMF:
700060cfb2

@doctrinebot commented on GitHub (Apr 11, 2010): 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
Author
Owner

@doctrinebot commented on GitHub (Apr 11, 2010):

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 commented on GitHub (Apr 11, 2010): 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" ```
Author
Owner

@doctrinebot commented on GitHub (Apr 12, 2010):

Comment created by @beberlei:

Implemented

@doctrinebot commented on GitHub (Apr 12, 2010): Comment created by @beberlei: Implemented
Author
Owner

@doctrinebot commented on GitHub (Apr 12, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Apr 12, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#634