mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Unrestricted cli-config.php file location #5718
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kilab on GitHub (Sep 28, 2017).
I can't find any informations about inform CLI where should search cli-config.php file.
In this moment I've got two options to place this file:
/project directory or/configdirectory in root. But what if I want store config file in eg./app/config/cli-config.php?Is this possible?
@Ocramius commented on GitHub (Sep 28, 2017):
@kilab it will look in your
cwd(current working directory).See:
53245e8a73/bin/doctrine.php (L35-L44)The docs are indeed a bit confusing about it: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/tools.html#configuration
Could you maybe patch them, once you get it working for your local environment?
@kilab commented on GitHub (Sep 28, 2017):
@Ocramius thanks for the hint!
If I'll run CLI command in directory where cli-config is storing, everything is fine.
In my case command is:
/app: ../vendor/bin/doctrine orm:schema-tool:update --force --dump-sql