I am trying to turn an query result into classes.
$result->setFetchMode(PDO::FETCH_CLASS, \'myclass\', array());
This works quite well howev
This cant really be done automaticly, it is too specific. You can just loop over each row and instantiate the correct class with the proper arguments.