co jest lepsze:
$klasa = new klasa;
$aData = = $this->dbh->getAll("select id from group");
foreach($aData as $a):
//cos tam cos tam
endforeach;
czy
$aData = = $this->dbh->getAll("select id from group");
foreach($aData as $a):
$klasa = new klasa;
//cos tam cos tam
endforeach;
selectem pobieram kolejne ID z bazy i dla każdego ID chcę wykonać kilka funkcji w klasie