4
A
回答
15
$criteria->addCondition('seller_id IS NULL');
$data= MODEL::model()->find($criteria);
试过吗? ** seller_id **是Yii中映射的列名,它可能与数据库中的实际列名不同。
相关问题
- 1. yii class is not loading
- 2. php yii framework :: $ content is not found
- 3. 在条件下使用<template is =“dom-if”
- 4. Yii中的条件与条件
- 5. Yii。 Many_Many relations上的条件
- 6. Yii中找到条件> =
- 7. Yii的使用条件
- 8. System.Numerics.Vectors.Vector <T> is missing
- 9. 三和条件在Yii的sql语句
- 10. 条件在Yii框架标准PHP的
- 11. Yii:按条件多次订购
- 12. 改变Yii关系的条件
- 13. 为什么我的<a href="test.xls"> is working and .txt is not?
- 14. <a jsf:rendered="#{...}"> is not interpreted as passthrough element
- 15. (x <= y <= z)条件语法?
- 16. 动态更新<a href link..> when <SELECTED> value is changed
- 17. Is unordered_set <reference_wrapper <Ty>>有效吗?
- 18. 如何让f.text_field + “<div>there is a error</div>” 工作
- 19. oninput event in html works fine <form></form> is added?
- 20. 使用Yii 2的registerJsFile方法包含条件文件
- 21. JUnit4:is()vs is(notNullValue())
- 22. 如何在jquery中的is()中进行条件检查
- 23. is .equal()方法在JAVA内部检查null条件
- 24. 如</p> <p><code><p>This is text </p></code>或<code><div></code>或<code>This is text</code></p> <p>使用<code>XmlPullParser</code>检索URL
- 25. .is()?
- 26. <c: choose> jsp中的条件执行所有条件
- 27. 避免滚动条从yii打印
- 28. 事件日历 - Yii
- 29. 文件上传(Yii)
- 30. 如何作出Many_Many关系Yii的条件
tnx,它的工作原理。但我很困惑。模型中的seller_id是表中的seller_id。名字是一样的! WTF? – Joeeee 2011-03-18 09:09:16
声称...如果它的工作,它的罚款。通常情况下,数据库的列名是完全正确映射的。很高兴它有帮助。 – Winfred 2011-03-18 09:15:02
对不起,打算发表评论,不能回答。 我在很久以前竟然[提交了一个bug] [1]。羌说他不会解决这个问题。我认为这是一个缺陷。我的另一个原因是分叉代码! [1]:http://code.google.com/p/yii/issues/detail?id=837&can=1&q=reporter:[email protected]&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner %20Stars%20Summary – lucifurious 2011-03-23 04:12:06