Skip to content

Fix MongoId mapping for insertAll. #4945

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

Closed
wants to merge 2 commits into from
Closed

Fix MongoId mapping for insertAll. #4945

wants to merge 2 commits into from

Conversation

christophstrobl
Copy link
Member

This PR fixes an issue where id properties annotated with @MongoId had not been converted into the desired target type when inserting a collection of objects instead a single one.

Closes: #4944

This commit fixes an issue where id properties annotated with MongoId had not been converted into the desired target type when inserting a collection of objects instead a single one.

Resolves: #4944
@mp911de mp911de added this to the 4.3.11 (2024.0.11) milestone Apr 14, 2025
@mp911de mp911de added the type: bug A general bug label Apr 14, 2025
mp911de pushed a commit that referenced this pull request Apr 14, 2025
This commit fixes an issue where id properties annotated with MongoId had not been converted into the desired target type when inserting a collection of objects instead a single one.

Resolves: #4944
Original pull request: #4945
mp911de added a commit that referenced this pull request Apr 14, 2025
Initialize MongoId also for reactive insertAll(…).

See: #4944
Original pull request: #4945
mp911de pushed a commit that referenced this pull request Apr 14, 2025
This commit fixes an issue where id properties annotated with MongoId had not been converted into the desired target type when inserting a collection of objects instead a single one.

Resolves: #4944
Original pull request: #4945
mp911de added a commit that referenced this pull request Apr 14, 2025
Initialize MongoId also for reactive insertAll(…).

See: #4944
Original pull request: #4945
mp911de pushed a commit that referenced this pull request Apr 14, 2025
This commit fixes an issue where id properties annotated with MongoId had not been converted into the desired target type when inserting a collection of objects instead a single one.

Resolves: #4944
Original pull request: #4945
mp911de added a commit that referenced this pull request Apr 14, 2025
Initialize MongoId also for reactive insertAll(…).

See: #4944
Original pull request: #4945
@mp911de
Copy link
Member

mp911de commented Apr 14, 2025

Todo: merge to 5.0.x branch

christophstrobl added a commit that referenced this pull request Apr 14, 2025
This commit fixes an issue where id properties annotated with MongoId had not been converted into the desired target type when inserting a collection of objects instead a single one.

Resolves: #4944
Original pull request: #4945
christophstrobl pushed a commit that referenced this pull request Apr 14, 2025
Initialize MongoId also for reactive insertAll(…).

See: #4944
Original pull request: #4945
@christophstrobl
Copy link
Member Author

merged to 5.0.x as well. Closing.

@christophstrobl christophstrobl deleted the issue/4944 branch April 15, 2025 12:16
christophstrobl added a commit that referenced this pull request Apr 22, 2025
This commit fixes an issue where id properties annotated with MongoId had not been converted into the desired target type when inserting a collection of objects instead a single one.

Resolves: #4944
Original pull request: #4945
christophstrobl pushed a commit that referenced this pull request Apr 22, 2025
Initialize MongoId also for reactive insertAll(…).

See: #4944
Original pull request: #4945
christophstrobl added a commit that referenced this pull request Apr 22, 2025
This commit fixes an issue where id properties annotated with MongoId had not been converted into the desired target type when inserting a collection of objects instead a single one.

Resolves: #4944
Original pull request: #4945
christophstrobl pushed a commit that referenced this pull request Apr 22, 2025
Initialize MongoId also for reactive insertAll(…).

See: #4944
Original pull request: #4945
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent _id Storage Type Between save and saveAll for @MongoId String id
2 participants