Skip to content

Loading…

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

Closed
doctrinebot opened this Issue · 3 comments

2 participants

@doctrinebot

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.

@doctrinebot

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

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0-BETA1 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.