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

SqlitePlatform::getName() is deprecated #253

Closed
craigh opened this issue Dec 6, 2023 · 4 comments · Fixed by #255
Closed

SqlitePlatform::getName() is deprecated #253

craigh opened this issue Dec 6, 2023 · 4 comments · Fixed by #255
Labels
enhancement New feature or request

Comments

@craigh
Copy link

craigh commented Dec 6, 2023

I get this deprecation notice when running my tests:

SqlitePlatform::getName() is deprecated. Identify platforms by their class. (SqlitePlatform.php:672 called by AbstractDatabaseTool.php:196, https://github.com/doctrine/dbal/issues/4749, package doctrine/dbal)

That's \Liip\TestFixturesBundle\Services\DatabaseTools\AbstractDatabaseTool

I was hoping you could help with that. thank you :-)

Symfony 6.3.9
doctrine/doctrine-bundle 2.11.1
doctrine/orm 2.17.1
phpunit/phpunit 9.6.15
liip/functional-test-bundle 4.10.0
liip/test-fixtures-bundle 2.7.0

let me know if you need other info. thank you

@alexislefebvre alexislefebvre transferred this issue from liip/LiipFunctionalTestBundle Dec 6, 2023
@alexislefebvre
Copy link
Collaborator

Do you have an idea about how to do this?

Identify platforms by their class.

@craigh
Copy link
Author

craigh commented Dec 6, 2023

not really. Someone on slack said "use SqlitePlaform::class" but I wouldn't know where or how.

@mbabker
Copy link
Contributor

mbabker commented Dec 8, 2023

Duplicate of #184 😉

For reference though, what you probably need is something like this method in the symfony/cache DBAL adapter which effectively replicates the deprecated getName() method for known platforms.

@alexislefebvre
Copy link
Collaborator

Thanks @mbabker, let's close it and follow this subject in the other issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants