How to force PDOStatement->fetchAll to return array of objects?

后端 未结 3 638
孤街浪徒
孤街浪徒 2020-12-15 17:55

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:

3条回答
提交回复
热议问题