=============== MyManualController.php ===============
$mCC = $this->getDoctrine()->getManager();
$qCC = "CONFLICT QUERY HERE...";
$xCC = $mCC->getConnection()->prepare($qCC);
$xCC->execute();
$sCC =
$xCC->fetchAll();===============电流输出===============
[{
"emp_name": "Sample"
"adjustment": "0",
"by_days": "10",
"mos": "323",
"by_mos": "0",
"yrs": "27",
"by_yrs": "0"
}]===============预期输出===============
[{
"emp_name": "Sample"
"adjustment": 0,
"by_days": 10,
"mos": 323,
"by_mos": 0,
"yrs": 27,
"by_yrs": 0
}]发布于 2022-10-20 03:35:15
跟随链接https://symfony.com/doc/current/doctrine.html
您可以创建实体,也可以按照文档创建手动类,例如
https://stackoverflow.com/questions/74133730
复制相似问题