|
@@ 111-118 (lines=8) @@
|
| 108 |
|
$field = $expression->getField(); |
| 109 |
|
$column = is_string($field) ? $this->_toolbox->columnName($field) : ''; |
| 110 |
|
|
| 111 |
|
if (empty($column) || |
| 112 |
|
in_array($column, (array)$this->_table->schema()->columns()) || // ignore real columns |
| 113 |
|
!in_array($column, $this->_toolbox->getAttributeNames()) || |
| 114 |
|
!$this->_toolbox->isSearchable($column) // ignore no searchable virtual columns |
| 115 |
|
) { |
| 116 |
|
// nothing to alter |
| 117 |
|
return $expression; |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
$attr = $this->_toolbox->attributes($bundle)[$column]; |
| 121 |
|
$value = $expression->getValue(); |
|
@@ 179-186 (lines=8) @@
|
| 176 |
|
$field = $value->getIdentifier(); |
| 177 |
|
$column = is_string($field) ? $this->_toolbox->columnName($field) : ''; |
| 178 |
|
|
| 179 |
|
if (empty($column) || |
| 180 |
|
in_array($column, (array)$this->_table->schema()->columns()) || // ignore real columns |
| 181 |
|
!in_array($column, $this->_toolbox->getAttributeNames($bundle)) || |
| 182 |
|
!$this->_toolbox->isSearchable($column) // ignore no searchable virtual columns |
| 183 |
|
) { |
| 184 |
|
// nothing to alter |
| 185 |
|
return $expression; |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
$pk = $this->_tablePrimaryKey(); |
| 189 |
|
$driverClass = $this->_driverClass($query); |