用模型查询数据的时候想把数据结果处理后返回客户端,如果没配置输出是Array就会报Call to a member function toArray() on array这样的错误。 示例代码: ...