2
我得到正是這個錯誤: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」,並有一個脫穎而出ignkey命名爲「another_object_id」。我究竟做錯了什麼?