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

Fix deprecations raised for support of Doctrine DBAL 4 #442

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

raziel057
Copy link
Contributor

Fix for the following deprecation:

Not configuring a schema manager factory is deprecated. Use Doctrine\DBAL\Schema\DefaultSchemaManagerFactory which is going to be the default in DBAL 4. (Connection.php:220 called by DriverManager.php:196, doctrine/dbal#5812, package doctrine/dbal)
Stack trace:
#0 [internal function]: Symfony\Bridge\PhpUnit\DeprecationErrorHandler->handleError(16384, 'Not configuring...', 'X:\workspace-no...', 209)
#1 vendor\doctrine\dbal\src\Connection.php(220): Doctrine\Deprecations\Deprecation::trigger('doctrine/dbal', 'https://github....', 'Not configuring...', 'Doctrine\DBAL\S...')
#2 vendor\doctrine\dbal\src\DriverManager.php(196): Doctrine\DBAL\Connection->__construct(Object(SensitiveParameterValue), Object(Doctrine\DBAL\Driver\PDO\MySQL\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#3 vendor\lexik\translation-bundle\Storage\DoctrineORMStorage.php(39): Doctrine\DBAL\DriverManager::getConnection(Object(SensitiveParameterValue))
#4 vendor\lexik\translation-bundle\EventDispatcher\GetDatabaseResourcesListener.php(25): Lexik\Bundle\TranslationBundle\Storage\DoctrineORMStorage->translationsTablesExist()

And

Connection::getSchemaManager() is deprecated, use Connection::createSchemaManager() instead. (Connection.php:1695 called by DoctrineORMStorage.php:57, doctrine/dbal#4515, package doctrine/dbal)

@bartmcleod bartmcleod merged commit 58b77c4 into lexik:master Aug 28, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants