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 call on non-object in ping() with PDO wrapper #878

Merged
merged 1 commit into from
Jul 15, 2015

Conversation

Virakal
Copy link
Contributor

@Virakal Virakal commented Jul 14, 2015

Fixes an issue when calling ping() where $this->platform is null. Happened to me because using the 'pdo' param bypasses the connect() method and the platform is never set without explicitly calling the method.

Not sure if this is the most elegant way to deal with this but it worked enough for my purposes so I figured I should submit a PR.

Fixes an issue when calling `ping()` where `$this->platform` is null. Happened to me because using the `'pdo'` param bypasses the `connect()` method and the platform is never set without explicitly calling the method.

Not sure if this is the most elegant way to deal with this but it worked enough for my purposes so I figured I should submit a PR.
@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DBAL-1260

We use Jira to track the state of pull requests and the versions they got
included in.

@billschaller
Copy link
Member

There are a few other spots that should probably be calling getDatabasePlatform as well. This is a simple and straightforward fix, so I'll merge.

billschaller pushed a commit that referenced this pull request Jul 15, 2015
Fix call on non-object in ping() with PDO wrapper
@billschaller billschaller merged commit 03a7692 into doctrine:master Jul 15, 2015
billschaller pushed a commit that referenced this pull request Jul 15, 2015
Fix call on non-object in ping() with PDO wrapper
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants