I have a query I run in Doctrine; it now is failing, but in a weird way. This query has worked for a year, I just messed with my composer.json a bit by adding a couple new libraries, and changing some versions. I also updated my Linux box (maybe MySQL or MariaDB has been updated, not sure).
Whatever has changed (doubtful it's my bundle's Doctrine model code, unless it wasn't kosher in the first place and a core update now reveals it as broken), the query is now returning results, with an array of the correct amount of keys, however the values are getting NULLed somehow. The array looks exactly like this, a direct copy and paste from the var_dump, e.g.
var_dump($query->getSql());
var_dump($results);
exit;
select GoalLabel from opt_goals where scale = 'mathematics'
array(17) { [0]=> NULL [1]=> NULL [2]=> NULL [3]=> NULL [4]=> NULL [5]=> NULL [6]=> NULL [7]=> NULL [8]=> NULL [9]=> NULL [10]=> NULL [11]=> NULL [12]=> NULL [13]=> NULL [14]=> NULL [15]=> NULL [16]=> NULL }
But when I run this same query in MySQL command line, I get the actual results, which is the same amount of keys, but the values are there.
Here's the non default portion of my composer.json require section:
"components/jquery": "~1.11,<2.0",
"twbs/bootstrap": "3.3.*",
"braincrafted/bootstrap-bundle": "~2.1",
"knplabs/knp-menu": "~1.1",
"knplabs/knp-menu-bundle": "~1.1",
"knplabs/knp-paginator-bundle": "dev-master",
"symfony/icu": "1.1.*",
"mnot/hinclude": "dev-master",
"rhumsaa/array_column": "~1.1",
"webfactory/exceptions-bundle": "@stable",
"friendsofsymfony/jsrouting-bundle": "~1.5",
"hearsay/require-js-bundle": "~1.0",
"browserstate/history.js": "dev-master"
Pay close attention to any version adjustments, because I did mess with this. However I don't know at which point Doctrine went off the deep end.
Edit: per the latest comments, and now seeing this, is this what is going on? Actually this URL is more appropriate because I am not using doctrine/dbal, I'm using doctrine/orm.
var_dump()trydump()if you usesymfony +2.6and lets see what you get.EXPLAINin your web profiler?app_dev.php/prepended to the URI and then go through the history of your requests (see the "view last 10" at the top of every full-page profiler?)