You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
report a bug about Composite key when call remove. #345
Hi,
When I call business_keypages.find({..}).remove(function() {...}), an error always occurs: { [Error: ER_BAD_FIELD_ERROR: Unknown column 'url,domain' in 'where clause'] code: 'ER_BAD_FIELD_ERROR', index: 0 }
My Model is follow:
To find the reason, I changed id: [ "url", "domain" ] to id: ["domain" , "url" ], and the corresponding part of error log also changed to be domain,url.
The orm version is latest 2.1.2.
Activity
dresende commentedon Dec 5, 2013
I think I fixed this, just have to update mongodb driver to support the change.
Updates ChainFind.remove() to support multiple keys (#345)
Fixes mongodb driver to support AND/OR/NOT conditions (#345)
Fixes ChainFind.remove() condition building (#345)