Open akserikawa opened 5 years ago
When running php bin/console doctrine:migrations:migrate
it says:
PHP Fatal error: Class 'Doctrine\DBAL\Migrations\AbstractMigration' not found in /Users/myuser/Sites/adr-blog/src/Migrations/Version20180526152815.php on line 11
Solved by changing:
# in src/Migrations/Version20180526152815.php
- use Doctrine\DBAL\Migrations\AbstractMigration;
+ use Doctrine\Migrations\AbstractMigration;
btw, my composer.json:
{
"require": {
"php": "^7.1.3",
"ext-iconv": "*",
"doctrine/doctrine-bundle": "^1.10",
"doctrine/doctrine-cache-bundle": "^1.3",
"doctrine/doctrine-migrations-bundle": "^2.0",
"doctrine/orm": "^2.6",
"symfony/console": "^4.0",
"symfony/flex": "^1.0",
"symfony/framework-bundle": "^4.0",
"symfony/lts": "^4@dev",
"symfony/phpunit-bridge": "^4.0",
"symfony/yaml": "^4.0"
},
"require-dev": {
"symfony/dotenv": "^4.0",
"symfony/web-server-bundle": "^4.0"
},
// ...
}
Managed to run the project after a bit of hussle.
I had to install the following:
composer require symfony/serializer
composer require symfony/property-access
It all works fine for now!
Solved by adding the following packages to composer.json
Also,
composer install
throws another error due tosymfony/flex
version being outdated