Skip to content

[9.x] Fix incrementing string keys - #44247

Merged
taylorotwell merged 1 commit into
9.xfrom
fix-incrementing-string-ids
Sep 22, 2022
Merged

[9.x] Fix incrementing string keys#44247
taylorotwell merged 1 commit into
9.xfrom
fix-incrementing-string-ids

Conversation

@driesvints

Copy link
Copy Markdown
Member

Something I feared about #44146 became true. Apparently there is a use case for string keys that are incremental. In MongoDB the string key is generated in the database itself and later retrieved and set. Because of this change it didn't get automatically set on the model anymore.

I've changed the implementation by adding the getIncrementing() methods to the traits and doing the same check as in getKeyType.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants