Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

continuing issue no. 7 #11

Open
saggi18dec opened this Issue · 4 comments

3 participants

Ajinder Paulo Vítor S Reis Alessandro Nadalin
Ajinder

yes. configuration is done through config.yml files, but there is an option to provide configuration at runtime in the command.
which is not working properly, and the issue is for that.

Paulo Vítor S Reis

I'm having the same problem! =(

Alessandro Nadalin
Collaborator

@saggi18dec can you please provide some more details?

Ajinder

If i give configuration file path in the command, and give the migrations directory in that file, its not getting changed.

steps:
created a file : migrations.yml
and typed:
migrations_dir: /path/to/migrations

and given its path in doctrine:migrations:status --configuration="/path/to/migrations.yml"

now, the path given in migrations.yml is not used for generating migration scripts [version*]

The problem is in /DoctrineMigrationsBundle/Command/DoctrineCommand.php

$dir = $container->getParameter('doctrine_migrations.dir_name');
$configuration->setMigrationsDirectory($dir);

The above setting gives problem when we pass the configuration in command line arguments such as:

php console doctrine:migrations:status --configuration=/path/to/configuration.yml

the configuration path is overwritten by above mentioned lines.

Alessandro Nadalin
Collaborator

thx for now ;)

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.