欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

Query builder -- map to array object

Method get from query builder return array of stdClass object. It is posible change stdClass to another?

Regards, Adam
 

Maybe try this: app -> config.php

Change 'fetch' => PDO::FETCH_CLASS, to 'fetch' => PDO::FETCH_ASSOC,


5.2的版本是 在 config -> database.php 中进行修改

普通分类: