我有一个像这样由joomla生成的stdClass对象
$db->setQuery($sql);
$schoollist = $db->loadObjectList();
并且 $schoollist 变量包含以下 stdClass 对象
stdClass Object ( [id] => 1 [col1] => blabla [col2] => 5 [col3] => 208 )
stdClass Object ( [id] => 2 [col1] => test1 [col2] => 1 [col3] => 52 )
我需要在查询之后添加另一个“列”为 [col4] => dsdads ,所以结果会是这样的
stdClass Object ( [id] => 1 [col1] => blabla [col2] => 5 [col3] => 208 [col4] => 208)
stdClass Object ( [id] => 2 [col1] => test1 [col2] => 1 [col3] => 52 [col4] => 208)
我怎样才能做到这一点?