Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrationPath Array to string conversion #317

Open
denes096 opened this issue Jul 23, 2020 · 0 comments
Open

migrationPath Array to string conversion #317

denes096 opened this issue Jul 23, 2020 · 0 comments
Labels

Comments

@denes096
Copy link

denes096 commented Jul 23, 2020

What steps will reproduce the problem?

I updated yii from 2.0.12 -> 2.0.36
Console app migration.
$ ./yii mongodb-migrate/up --migrationPath=@app/migrations/mongodb

What's expected?

What do you get instead?

*** applying m160527_141403_create_sources_aggregate_index
/var/www/html/project/vendor/yiisoft/yii2-mongodb/console/controllers/MigrateController.php:133:

**VARDUMP PRODUCED :**
array(1) {
  [0] =>
  string(49) "/var/www/html/project/console/migrations/mongodb"
}

PHP Notice 'yii\base\ErrorException' with message 'Array to string conversion'

in /var/www/html/project/vendor/yiisoft/yii2-mongodb/console/controllers/MigrateController.php:136

Additional info

Since MigrateController dont include BaseMigrateController -> $this->includeMigrationFile($class); , migrationPath is going to be always handled as array.

Q A
Yii version 2.0.36
Yii MongoDB version 2.1.3
MongoDB server version
PHP version 7.2
Operating system Debian 10
@samdark samdark added the type:bug Bug label Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants