Open hawarir opened 6 years ago
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?