-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
Problem with composite keys #1295
Comments
I'm also experiencing the same issue. I have a model with the following properties:
and I'm trying to use findOrCreate:
However, if I call multiple time the above code with same userId, but different date, the same DayBlock is returned. |
+1 |
i saw persisted-model's source.. and the problem begin in getId() method.. because its return away one column!
|
+1 |
1 similar comment
+1 |
Possibly related: #2046 |
And also #126 |
I am still seeing the issue. Even |
I am afraid this is a limitation of LoopBack design and as such won't be fixed in 2.x/3.x versions. Please join the LoopBack 4 discussion here: loopbackio/loopback-next#1830 |
I have this model:
and this SQL dump:
I found some errors when try to delete a model or getId.
Also, when destroying for example:
like.destroy(..)
destroy ALL likes. I think it's related withgetId()
, becausegetIdName()
only returnedrecipeId
The text was updated successfully, but these errors were encountered: