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

[Profiler] Explain is broken #757

Closed
ssaki opened this issue Jan 12, 2018 · 1 comment
Closed

[Profiler] Explain is broken #757

ssaki opened this issue Jan 12, 2018 · 1 comment

Comments

@ssaki
Copy link

ssaki commented Jan 12, 2018

Hitting the "Explain query" link in the Doctrine's profiler screen reports "An error occurred while loading the query explanation." with request to profiler controller reporting 500 status.

It's caused by vendor/doctrine/doctrine-bundle/Controller/ProfilerController.php:102

    private function explainOtherPlatform(Connection $connection, $query)
    {
        return $connection->executeQuery('EXPLAIN '.$query['sql'], $query['params'], $query['types'])
            ->fetchAll(\PDO::FETCH_ASSOC);
    }

The second parameter of executeQuery() must be an array while $query['params'] is an instance of Symfony\Component\VarDumper\Cloner\Data.

@PaddyLock
Copy link

I'm also experiencing this issue. I have Symfony 4.1.4 with Flex.

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

No branches or pull requests

2 participants