Skip to content
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

Relations via array #375

Merged
merged 20 commits into from
Aug 17, 2024
Merged

Relations via array #375

merged 20 commits into from
Aug 17, 2024

Conversation

Tigrov
Copy link
Member

@Tigrov Tigrov commented Jul 7, 2024

Q A
Is bugfix?
New feature? ✔️
Breaks BC?
Fixed issues #362

Copy link

codecov bot commented Jul 7, 2024

Codecov Report

Attention: Patch coverage is 87.87879% with 4 lines in your changes missing coverage. Please review.

Project coverage is 87.42%. Comparing base (6f3c8b0) to head (920d59e).
Report is 1 commits behind head on master.

Files Patch % Lines
src/ActiveRelationTrait.php 87.09% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #375      +/-   ##
============================================
+ Coverage     87.30%   87.42%   +0.11%     
- Complexity      597      598       +1     
============================================
  Files            17       17              
  Lines          1410     1423      +13     
============================================
+ Hits           1231     1244      +13     
  Misses          179      179              

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

@Tigrov Tigrov added the status:code review The pull request needs review. label Jul 12, 2024
@Tigrov Tigrov requested a review from a team July 12, 2024 07:44
src/ActiveRelationTrait.php Outdated Show resolved Hide resolved
$attribute = reset($attributes);

match ($this->getARInstance()->columnType($attribute)) {
'array' => $this->andWhere(new ArrayOverlapsCondition($attribute, $values)),
Copy link
Member

Choose a reason for hiding this comment

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

Should we add constant TYPE_ARRAY to SchemaInterface in Yii DB?

Copy link
Member Author

@Tigrov Tigrov Jul 12, 2024

Choose a reason for hiding this comment

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

Yes, plan to move TYPE_ARRAY and TYPE_BIT from db-pgsql to db package. After it can be replaced to the constant.

@Tigrov Tigrov merged commit 721cbf2 into master Aug 17, 2024
30 checks passed
@Tigrov Tigrov deleted the relations-via-array branch August 17, 2024 09:58
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.

4 participants