当前位置:
代码迷
>>
PHP
>> thinkphp mode的find方法失灵
详细解决方案
thinkphp mode的find方法失灵
热度:
67
发布时间:
2016-04-28 17:20:58.0
thinkphp mode的find方法失效
今天遇到一个奇怪的问题
使用 D('Custoemr')->find(1)语句没有sql执行,非常奇怪。
而用其他表的model的find方法却正常。再结合D('Custoemr')->add()方法不返回主键。
觉得问题应该出在主键上,于是再仔细检查customer表发现果不其然有两个主键。 其中一个是手误点上去的。
所以这里再次总结下,如果有表有多个主键,那么find和create方法都不会正常执行
查看全文
相关解决方案
Could not find a getter for name in class解决方法
Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your,该如何处理
用eclipse打包jar后运行,弹出异常could not find main class
Android运行宝Automatic Target Mode: Preferred AVD 'myavd' is not available解决办法
有人用过zeroMQ吗?一直揭示C:\Program Files\Java\jre6\bin\jzmq.dll: Can't find dependent li
<authentication mode="Windows"/>出错,该如何处理
unable to find a version of the runtime to run this application解决办法
MakeThumbnail(string originalImagePath, string thumbnailPath, int width, int height, string mode)路径有关问题
关于xhtmlConformance mode= "Legacy"和updatepanel不兼容的有关问题
急设置 authentication mode="Forms" 后,怎么使网站的某些页面不需注册就可以访问
<customErrors mode="Off"/>呼救!SOS
office2007提示“对话框打开时命令无法执行”和cannot find the word template:WordToRqm.dot的解决办法
Selection.Find 选择所有匹配结果解决办法
cannot find win.com,unable to continue windows,该怎么处理
cannot find win.com,unable to continue windows.解决思路
word vba find 怎么匹配0个或多个前面的字符
求大神帮忙,汇编开展连接时出现fatal error cannot find msvcrt.lib文件
Find and retrieve resources by VTMOS例子出有关问题
vfp dll .cannot find entry point解决办法
windows下安装DB2出现error opening db2 setup launchpad cannot find supported wen brows解决思路
cgi+boa,cgi页面施行失败。提示cgi_header: unable to find LFLF
unable to find package import : dclusr.bpi
It's difficult to find a good job!解决方案
每天背熟一句英语(25)I've searched far and wide for the book but I still can't find it.解决方法
急linux 上代码编译出现/usr/bin/ld: cannot find -lsicui18n
为arm平台写了个使用sdl的测试程序衔接时出现skipping incompatible然后就提示cannot find -lSDL了,该如何解决
这道题关于check log shipping and find out the problem,该如何处理
dshow push mode filter,怎么增加接口
jquery 里边的.find() .each() .parent() .value(parseInt())
错误信息:could not find the main class programe will exit