Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[DoctrineBridge] Improve queries parameters display in Profiler#34384
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
c81ca71 to5018f45Compare
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Nice, just minor comments.
src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
nicolas-grekas commentedNov 15, 2019
Oh, please check tests on Windows, they fail. |
5018f45 to0de1c78Comparefancyweb commentedNov 15, 2019
@nicolas-grekas CI is green but I had to disable colors for the cli dumper for Windows. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
0de1c78 to9c5bb11Comparesrc/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
9c5bb11 tofe15f51Comparefabpot commentedNov 17, 2019
Thank you@fancyweb. |
…filer (fancyweb)This PR was merged into the 4.4 branch.Discussion----------[DoctrineBridge] Improve queries parameters display in Profiler| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets |#34234| License | MIT| Doc PR | -## Stringable object:_The query is runnable._### Before<img width="773" alt="Screenshot 2019-11-14 at 21 05 53" src="https://user-images.githubusercontent.com/3658119/68892948-669cf180-0724-11ea-889b-8ce781956fc7.png">### After<img width="780" alt="Screenshot 2019-11-14 at 20 56 38" src="https://user-images.githubusercontent.com/3658119/68892978-787e9480-0724-11ea-843b-70a595633192.png">## Non stringable object:_Exception, the query is not runnable._### Before<img width="783" alt="Screenshot 2019-11-14 at 21 05 31" src="https://user-images.githubusercontent.com/3658119/68892993-80d6cf80-0724-11ea-9961-e32b65f81508.png">### After<img width="622" alt="Screenshot 2019-11-14 at 20 57 17" src="https://user-images.githubusercontent.com/3658119/68893007-87fddd80-0724-11ea-98cb-2ef695135673.png">## Error with an object:_`ConversionException` or a `\TypeError` when you specify the type when you set the parameter but you provide an invalid value and this value is an object (eg `->setParameter('foo', new \stdClass(), 'date')`), the query is not runnable._### Before<img width="775" alt="Screenshot 2019-11-14 at 21 04 45" src="https://user-images.githubusercontent.com/3658119/68893078-a9f76000-0724-11ea-9e9a-bb806ffa0a73.png">### After<img width="821" alt="Screenshot 2019-11-14 at 20 59 23" src="https://user-images.githubusercontent.com/3658119/68893098-b24f9b00-0724-11ea-8e9d-7179725b8bc1.png">## Error with anything else:_`ConversionException` or a `\TypeError` when you specify the type when you set the parameter but you provide an invalid value and this value is not an object (eg `->setParameter('foo', 'bar', 'date')`), the query is not runnable._### Before<img width="809" alt="Screenshot 2019-11-14 at 21 05 10" src="https://user-images.githubusercontent.com/3658119/68893031-93e99f80-0724-11ea-9c23-f8d05f2dbfbb.png">### After<img width="832" alt="Screenshot 2019-11-14 at 20 57 54" src="https://user-images.githubusercontent.com/3658119/68893055-9d730780-0724-11ea-8ce1-a7b8946aaf94.png">The new `runnable` key will be used in `DoctrineBundle` profiler template to hide the `View runnable query` link when the query is not runnable.Commits-------fe15f51 [DoctrineBridge] Improve queries parameters display in Profiler
Uh oh!
There was an error while loading.Please reload this page.
Stringable object:
The query is runnable.
Before
After
Non stringable object:
Exception, the query is not runnable.
Before
After
Error with an object:
ConversionExceptionor a\TypeErrorwhen you specify the type when you set the parameter but you provide an invalid value and this value is an object (eg->setParameter('foo', new \stdClass(), 'date')), the query is not runnable.Before
After
Error with anything else:
ConversionExceptionor a\TypeErrorwhen you specify the type when you set the parameter but you provide an invalid value and this value is not an object (eg->setParameter('foo', 'bar', 'date')), the query is not runnable.Before
After
The new
runnablekey will be used inDoctrineBundleprofiler template to hide theView runnable querylink when the query is not runnable.