DDC-502: Remove "mapping-path" from cli schema tool commands #626

Closed
opened 2026-01-22 12:44:58 +01:00 by admin · 3 comments
Owner

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

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

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.

Originally created by @doctrinebot on GitHub (Apr 9, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: 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.
admin added the Bug label 2026-01-22 12:44:58 +01:00
admin closed this issue 2026-01-22 12:44:59 +01:00
Author
Owner

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

@doctrinebot commented on GitHub (Apr 9, 2010): - is referenced by [DDC-510: Refactor Metadata Configuration](http://www.doctrine-project.org/jira/browse/DDC-510)
Author
Owner

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

Comment created by @beberlei:

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.

@doctrinebot commented on GitHub (Apr 10, 2010): Comment created by @beberlei: 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.
Author
Owner

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

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Apr 10, 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#626