Vote count:
0
I am using "sequelize": "^2.0.0-dev13"
and I have an odd issue:
DB.Author.findOrCreate
where:
remoteId: 1234
defaults:
name: 'myname'
remoteId: 1234
.complete (err, dbAuthor, isCreated) ->
syncAuthorCb err, dbAuthor
Thee query that gets generated is:
SELECT * FROM `Authors` WHERE `Authors`.`where` 1234 AND `Authors`.`defaults` 'myname' AND `Authors`.`defaults` 1234 LIMIT 1;
Not sure what I'm doing wrong. Any thoughts would be greatly appreciated
asked 26 secs ago
Sequelize 2.x findOrCreate query is strange
Aucun commentaire:
Enregistrer un commentaire