Hey,
I have problem with Doctrine profiling on MySQL database.
Type error: Argument 2 passed to Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension::dumpData() must be an instance of Symfony\Component\VarDumper\Cloner\Data, array given
This is coming from:
vendor/doctrine/doctrine-bundle/Resources/views/Collector/db.html.twig:241
I changed the profiler_dump to dump and it contains array with my query params:
Example:
array(1) { [0]=> string(36) "bc54bece-c234-11e7-85e6-0242ac140003" }
I am using: symfony/orm-pack ^1.0 with symfony 4.0 beta-2.
Same here. It can be reproduced pretty reliably. I believe doctrine profiler works in NO cases in Symfony 4.
composer create-project "symfony/skeleton:v4.0.0-BETA1" test
cd test
composer require orm profiler
DefaultController.php
namespace App\Controller;
use Doctrine\DBAL\Connection;
class DefaultController
{
public function index(Connection $connection)
{
$connection->query('foo');
}
}
.env
DATABASE_URL="sqlite::memory:"
Then, uncomment index route in routes.yaml, run
php -S 127.0.0.1:8000 -t public
Open http://127.0.0.1:8000/ and go to doctrine profiler
Most helpful comment
Same here. It can be reproduced pretty reliably. I believe doctrine profiler works in NO cases in Symfony 4.
DefaultController.php
.env
Then, uncomment index route in routes.yaml, run
Open http://127.0.0.1:8000/ and go to doctrine profiler