Skip to content

Conversation

@stloyd
Copy link
Member

@stloyd stloyd commented Jan 6, 2026

Resolves: #2128

Change Log


Added

  • Allow preserving existing values during DBAL upsert

Fixed

Changed

Removed

Deprecated

Security

@stloyd stloyd requested a review from norberttech as a code owner January 6, 2026 12:18
Comment on lines -27 to -36
if (count($columns) === 1) {
$column = $columns[0];

return \sprintf(
'DELETE FROM %s WHERE %s IN (%s)',
$table->name(),
$this->platform->quoteIdentifier($column),
$bulkData->toSqlPlaceholders()
);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Query is the same in all dialects and always uses WHERE + IN(), the only difference is count() + extract instead of using array_map, which in fact covers the same cases.

@codecov
Copy link

codecov bot commented Jan 6, 2026

Codecov Report

❌ Patch coverage is 83.33333% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.12%. Comparing base (bb7b23b) to head (bbbf303).
⚠️ Report is 4 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #2130      +/-   ##
==========================================
+ Coverage   82.87%   83.12%   +0.24%     
==========================================
  Files        1178     1178              
  Lines       41731    41733       +2     
==========================================
+ Hits        34586    34690     +104     
+ Misses       7145     7043     -102     
Components Coverage Δ
etl 90.61% <ø> (+0.89%) ⬆️
cli 85.76% <ø> (ø)
lib-array-dot 95.00% <ø> (ø)
lib-azure-sdk 60.01% <ø> (ø)
lib-doctrine-dbal-bulk 95.16% <83.33%> (+0.01%) ⬆️
lib-filesystem 80.44% <ø> (ø)
lib-types 88.98% <ø> (+1.51%) ⬆️
lib-parquet 68.25% <ø> (ø)
lib-parquet-viewer 83.04% <ø> (ø)
lib-snappy 90.18% <ø> (ø)
bridge-filesystem-async-aws 90.95% <ø> (ø)
bridge-filesystem-azure 89.38% <ø> (ø)
bridge-monolog-http 96.89% <ø> (ø)
bridge-openapi-specification 91.50% <ø> (ø)
symfony-http-foundation 74.11% <ø> (ø)
adapter-chartjs 86.33% <ø> (ø)
adapter-csv 89.30% <ø> (ø)
adapter-doctrine 91.50% <ø> (ø)
adapter-elasticsearch 97.02% <ø> (ø)
adapter-google-sheet 97.05% <ø> (ø)
adapter-http 65.94% <ø> (ø)
adapter-json 89.69% <ø> (ø)
adapter-logger 83.33% <ø> (ø)
adapter-meilisearch 97.77% <ø> (ø)
adapter-parquet 79.92% <ø> (ø)
adapter-text 86.84% <ø> (ø)
adapter-xml 82.66% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@norberttech norberttech added this to the 0.30.0 milestone Jan 6, 2026
@norberttech norberttech merged commit 16045bf into flow-php:1.x Jan 6, 2026
20 of 21 checks passed
@stloyd stloyd deleted the feature/2128 branch January 6, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal]: Allow to re-use existing values in case of conflict in DBAL insert/update

2 participants