Repository navigation
fix: prevent columns with select false from being returned - #11944
Conversation
User descriptionDescription of changePull-Request Checklist
PR TypeBug fix, Tests Description
Diagram Walkthroughflowchart LR
A["Save Operation"] --> B["updateSpecialColumnsInInsertedAndUpdatedEntities"]
B --> C["Check column.isSelect"]
C --> D["Delete from entity if false"]
D --> E["Cleaned Entity Returned"]
|
| Relevant files | |||||
|---|---|---|---|---|---|
| Bug fix |
| ||||
| Tests |
|
commit: |
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
select: false from being returned
Code Review by Qodo
1. Missing documentation for save() behavior
|
PR Code Suggestions ✨No code suggestions found for the PR. |
|
Persistent review updated to latest commit 02881bc |
`repository.save()` preserves user-supplied values for `select: false` columns on both the returned entity and the input reference. Update the 1.0 release note for typeorm#11944 and the query-builder "Hidden Columns" section to reflect the restored contract.
Description of change
This change is correctly handling the
selectproperty defined in columns.Pull-Request Checklist
masterbranchtests/**.test.ts)docs/docs/**.md)