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
{{ message }}
Repository navigation
QueryBuilder .insert().orIgnore(true) incorrectly assigns autogenerated columns to Entities #5226
Steps to reproduce or a small repository showing the problem:
When inserting into a table using QueryBuilder.insert() + orIgnore(true) - the entitiy collection gets incorrectly updated with generated columns because of missing rows in InsertResult.
Since ignored rows are skipped in InsertResult, and valueSets is still the ones the user passed in .values() - the indices get shifted, which results in the wrong entities overwritten in ReturningResultsEntityUpdator.insert()
TypeORM has returned to active development after recently transitioning to new leadership (see related announcement).
As part of the new team's efforts to prioritise work on the project moving forward, it is necessary to clean up the backlog of stale issues.
🧹 This issue is being automatically closed because it has had no activity in the last 6 months.
If you believe this issue is still relevant, feel free to comment below and the maintainers may reopen it. Thank you for your contribution.
Activity
IgorTurko commentedon Nov 8, 2021
Guys do you know work around for this? Because
insert().orIgnore().execute()returns emptyidentifiersandgeneratedMapsas a list of undefined.github-actions commentedon Sep 18, 2025
TypeORM has returned to active development after recently transitioning to new leadership (see related announcement).
As part of the new team's efforts to prioritise work on the project moving forward, it is necessary to clean up the backlog of stale issues.
🧹 This issue is being automatically closed because it has had no activity in the last 6 months.
If you believe this issue is still relevant, feel free to comment below and the maintainers may reopen it. Thank you for your contribution.