阅读背景:

您如何看待返回选择对象而不是语句结果?

来源:互联网 

I would have liked to know if it was a good idea to return a select object from a method like '$selectObj = getSomethingByName($name)' to then pass it to another method like 'getResult($selectObj)' which will do the trick. The idea is to be able to pass the select object to any usefull function like 'setLimit(10)' or addCriteria('blabla') depending on my model...I would have liked to know if it was a good ide




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: