PropelException [0]:无法确定要绑定到子句中的参数的列
我得到了这个错误:
PropelException [ 0 ]: Cannot determine the column to bind to the parameter in clause
这是我试图运行的代码:
$myObject = MyObjectQuery::create()
->where('MyObject.another_object_id = ?', $foreignKey)
->find();
也尝试了这个代码,这给了我同样的异常
$myObject = MyObjectQuery::create()
->where('MyObject.anotherObjectId = ?', $foreignKey)
->find()
我的 MySQL 数据库表称为“my_object”,并且有一个名为“another_object_id”的外键。我做错了什么?
I get exactly this error:
PropelException [ 0 ]: Cannot determine the column to bind to the parameter in clause
This is the code I'm trying to run:
$myObject = MyObjectQuery::create()
->where('MyObject.another_object_id = ?', $foreignKey)
->find();
Is also tried this code, which gave me the very same exception
$myObject = MyObjectQuery::create()
->where('MyObject.anotherObjectId = ?', $foreignKey)
->find()
My MySQL Database Table is called "my_object" and has a foreignkey named "another_object_id". What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许尝试一下:
或者
Maybe try :
or