|
@@ 85-89 (lines=5) @@
|
| 82 |
|
'ti.object_model_id = ' . $baseModelTableName . '.id'); |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
if ($prop->value_type === 'STRING' && $prop->property_handler_id !== 3) { |
| 86 |
|
$query->andFilterWhere(['like', 'ti.'.$prop->key, $this->{$prop->key}]); |
| 87 |
|
} else { |
| 88 |
|
$query->andFilterWhere(['ti.'.$prop->key => $this->{$prop->key}]); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
} elseif ($prop->is_eav) { |
| 92 |
|
$eavJoinsCount++; |
|
@@ 103-109 (lines=7) @@
|
| 100 |
|
$eavTableName.'.object_model_id = '.$baseModelTableName.".id AND $eavTableName.key=:$key", |
| 101 |
|
[$key=>$prop->key] |
| 102 |
|
); |
| 103 |
|
if ($prop->value_type === 'STRING' && $prop->property_handler_id !== 3) { |
| 104 |
|
$query->andFilterWhere(['like', $eavTableName.'.value', $this->{$prop->key}]); |
| 105 |
|
} else { |
| 106 |
|
// numeric - direct match |
| 107 |
|
$query->andFilterWhere([$eavTableName.'.value' => $this->{$prop->key}]); |
| 108 |
|
|
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
} elseif ($prop->has_static_values) { |
| 112 |
|
$osvJoinsCount++; |