GORM Playground Link
https://github.com/go-gorm/playground/pull/417
Description
Use Case: Define table with multiple primary keys (composite key) Upon New record insert, Get ID of autoIncrement enabled field.
Issue: 0 returned for autoIncrement enabled field. (Only when the model has 2 fields using primarykey tag)
Example:
Model Defined
Test Case:
Test Result: