Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
50 | public function scopeWithAttributeCodes($query, array $codes) |
||
51 | { |
||
52 | return $query->whereHas('customsAttributes', function ($q) use ($codes) { |
||
53 | $q->whereIn('dynamic_attribute_id', function ($subQuery) use ($codes) { |
||
54 | $subQuery->select('id') |
||
55 | ->from('dynamic_attributes') |
||
56 | ->whereIn('code', $codes); |
||
57 | }); |
||
62 |