Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DoctrineBridge] Fix issue which prevent the profiler to explain a query#16306

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Baachi wants to merge2 commits intosymfony:2.8fromBaachi:bugfix/profiler-fix

Conversation

@Baachi
Copy link
Contributor

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
LicenseMIT

We currently develop a application which only use the doctrine/dbal and not the orm. And we run into a issue that the profiler can't explained any query.
This is because theSQLLogger will passnull instead of an empty array. And thesanitizeQuery method will currently transform this toarray(null) which leads to an error.

I created an fork, so everyone can reproduce this.
https://github.com/Baachi/symfony-standard

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should be camel cased:$collectedQueries.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I just noticed it's also snaked_cased in the other test case. Feel free to fix that one as well.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Fixed it in all testcases

@jakzal
Copy link
Contributor

👍 should be merged to 2.3

status: reviewed

@fabpot
Copy link
Member

Thank you@Baachi.

fabpot added a commit that referenced this pull requestOct 28, 2015
…xplain a query (Baachi)This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes#16306).Discussion----------[DoctrineBridge] Fix issue which prevent the profiler to explain a query| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MITWe currently develop a application which only use the doctrine/dbal and not the orm. And we run into a issue that the profiler can't explained any query.This is because the `SQLLogger` will pass `null` instead of an empty array. And the `sanitizeQuery` method will currently transform this to `array(null)` which leads to an error.I created an fork, so everyone can reproduce this.https://github.com/Baachi/symfony-standardCommits-------3490e98 [DoctrineBridge] Fix issue which prevent the profiler to explain a query
@fabpotfabpot closed thisOct 28, 2015
This was referencedNov 23, 2015
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@Baachi@jakzal@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp