Skip to content

Fix indexed and associative values on upsert()#562

Merged
Tigrov merged 7 commits intomasterfrom
fix-indexed-and-associative-values
May 2, 2026
Merged

Fix indexed and associative values on upsert()#562
Tigrov merged 7 commits intomasterfrom
fix-indexed-and-associative-values

Conversation

@Tigrov
Copy link
Copy Markdown
Member

@Tigrov Tigrov commented Apr 30, 2026

Q A
Is bugfix? ✔️
New feature?
Breaks BC? ✔️/❌
Fixed issues #559

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 30, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: cb8d62f6-b455-4260-b05c-2a382b8781f6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-indexed-and-associative-values

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (3bbca3f) to head (c5b46d2).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##              master      #562   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity       656       656           
===========================================
  Files             43        43           
  Lines           1628      1626    -2     
===========================================
- Hits            1628      1626    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/ActiveRecord.php
array_diff_key($updateProperties, $updateNames),
$this->newPropertyValues($updateNames),
);
$updateProperties = array_diff_key($updateProperties, $updateNames) + $this->newValues($updateNames);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, but perhaps #559 is not a bug. To avoid potential problems, we need to give priority to passed properties with values.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This change is OK. But I suggest don't close issue.

Copy link
Copy Markdown
Member

@vjik vjik left a comment

Choose a reason for hiding this comment

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

Add line to changelog

@Tigrov Tigrov requested a review from vjik May 1, 2026 01:58
@Tigrov Tigrov added the status:code review The pull request needs review. label May 2, 2026
@Tigrov Tigrov merged commit 4a789b1 into master May 2, 2026
47 checks passed
@Tigrov Tigrov deleted the fix-indexed-and-associative-values branch May 2, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:code review The pull request needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants