We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When trying to add multiple belongsTo relationships, only the last one is actually saved.
belongsTo
For instance:
let user = yield User.find(1) let game = yield Game.find(1) let opinion = new Opinion opinion.game().associate(game) opinion.user().associate(user) yield opinion.create()
Will add a tuple in the DB which has user_id = 1 and game_id = NULL, whereas reversing the association lines will add user_id = NULL and game_id = 1.
user_id = 1
game_id = NULL
user_id = NULL
game_id = 1
The text was updated successfully, but these errors were encountered:
Identified bug ,i will fix it
Sorry, something went wrong.
Added support for multiple associate as per issue #4
6aeba8a
Lucid now supports multiple associate and dissociate under single write operation
Fixed as of v1.0.4
v1.0.4
thetutlage
No branches or pull requests
When trying to add multiple
belongsTo
relationships, only the last one is actually saved.For instance:
Will add a tuple in the DB which has
user_id = 1
andgame_id = NULL
, whereas reversing the association lines will adduser_id = NULL
andgame_id = 1
.The text was updated successfully, but these errors were encountered: