Skip to content

ErrorException: Undefined array key "adapter" in AbstractCommand.php:470 #2311

Description

@zeleznypa

https://github.com/cakephp/phinx/blame/2e9d7d2fd6aa81187bc1c09892d0a9a6e321765b/src/Phinx/Console/Command/AbstractCommand.php#L470

When the Pninx environment is defined via the "connection" like in the https://book.cakephp.org/phinx/0/en/configuration.html, the "adapter" is not a part of the $envOptions, so it fails on error:

ErrorException: Undefined array key "`adapter`" in /opt/srv/super-secret-project/vendor/robmorgan/phinx/src/Phinx/Console/Command/AbstractCommand.php:470

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions