=============== MyManualController.php ===============
$mCC = $this->getDoctrine()->getManager();
$qCC = "CONFLICT QUERY HERE...";
$xCC = $mCC->getConnection()->prepare($qCC);
$xCC->execute();
$sCC =
$xCC->fetchAll();
=============== Current Output ===============
[{
"emp_name": "Sample"
"adjustment": "0",
"by_days": "10",
"mos": "323",
"by_mos": "0",
"yrs": "27",
"by_yrs": "0"
}]
=============== Expected Output ===============
[{
"emp_name": "Sample"
"adjustment": 0,
"by_days": 10,
"mos": 323,
"by_mos": 0,
"yrs": 27,
"by_yrs": 0
}]
\PDO::ATTR_EMULATE_PREPARESvalue of true. Setting it to false will give you the expected integers. How you are configuring your connection is a bit of a mystery. Symfony sets it up correctly. But you seem to be using your own configuration.