From 2d53f6c13d9cb28202488690653cb86f54395e3e Mon Sep 17 00:00:00 2001 From: Serhii Donii Date: Tue, 4 Jun 2024 17:45:45 +0300 Subject: [PATCH] feat(o10r-symfony-template-154): Upgrade doctrine/orm to 3.0 --- tools/prepare-configs.php | 2 +- tools/update_versions.sh | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 tools/update_versions.sh diff --git a/tools/prepare-configs.php b/tools/prepare-configs.php index 38fe752..3dd4df5 100644 --- a/tools/prepare-configs.php +++ b/tools/prepare-configs.php @@ -11,7 +11,7 @@ if ('4.0' === $doctrineVersion) { $skipPath = __DIR__ . '/../src/Doctrine/Driver/IamDecorator.php'; } else { - $skipPath = __DIR__ . '/../src/Doctrine/Driver/IamDecoratorDoctrine30.php'; + $skipPath = __DIR__ . '/../src/Doctrine/Driver/IamDecoratorDoctrine40.php'; } $neonFile = __DIR__ . '/../phpstan.neon'; diff --git a/tools/update_versions.sh b/tools/update_versions.sh new file mode 100644 index 0000000..18cbfa3 --- /dev/null +++ b/tools/update_versions.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +#!/usr/bin/env bash + +rm -rf tests/App/var/cache/* +symfonyVersion=${1:-6.4.*} +dbalVersion=${2:-3.0} + +rm -rf vendor composer.lock; +composer require symfony/config:$symfonyVersion --no-update --no-scripts +composer require symfony/dependency-injection:$symfonyVersion --no-update --no-scripts +composer require symfony/http-kernel:$symfonyVersion --no-update --no-scripts +composer require symfony/cache:$symfonyVersion --no-update --no-scripts +composer require doctrine/dbal:$dbalVersion --no-update --no-scripts -W +composer require --dev symfony/yaml:$symfonyVersion --no-update --no-scripts +composer require --dev symfony/phpunit-bridge:$symfonyVersion --no-update --no-scripts +composer require --dev symfony/framework-bundle:$symfonyVersion --no-update --no-scripts + +composer install +