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
Hi, so I have two models here, lets say one is Model A and the other one is Model B. When I insert! Model A, the function returns its identity, but when I insert! Model B, the returned value is nil.
The difference between this model is that Model A is using generated id from mysql, where Model B is using id composed in my application:
Hi @hawari17 unfortunately Toucan still makes assumptions that models have a primary key named :id which of course is not true for everybody. See issue #3.
If you have some spare cycles I would happily merge a PR to improve support for situations like the one you're running in to!
Hi, so I have two models here, lets say one is Model A and the other one is Model B. When I
insert!
Model A, the function returns its identity, but when Iinsert!
Model B, the returned value is nil.The difference between this model is that Model A is using generated id from mysql, where Model B is using id composed in my application:
Is this behavior expected?
The text was updated successfully, but these errors were encountered: