-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Relations via array #375
Conversation
Tigrov
commented
Jul 7, 2024
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ✔️ |
Breaks BC? | ❌ |
Fixed issues | #362 |
…refactor-populateRelation
# Conflicts: # tests/Driver/Pgsql/ActiveRecordTest.php
Codecov ReportAttention: Patch coverage is
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. |
# Conflicts: # tests/ActiveRecordTest.php
$attribute = reset($attributes); | ||
|
||
match ($this->getARInstance()->columnType($attribute)) { | ||
'array' => $this->andWhere(new ArrayOverlapsCondition($attribute, $values)), |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Co-authored-by: Sergei Predvoditelev <[email protected]>