I am writing my own simply ORM using PDO. My question is if you can force PDOStatement::fetchAll() method to return array of objects of stdClass? For example:>
PDOStatement::fetchAll()
Use $result = $q->fetchAll(PDO::FETCH_OBJ);
$result = $q->fetchAll(PDO::FETCH_OBJ);