@@ 283-285 (lines=3) @@ | ||
280 | foreach ($query->entity(CMS::MATERIAL_FIELD_RELATION_ENTITY) |
|
281 | ->where('MaterialID', $tableRowsIDs) |
|
282 | ->whereCondition($localizationFieldCond)->exec() as $mf) { |
|
283 | if (!is_array($resultTable[$mf['MaterialID']])) { |
|
284 | $resultTable[$mf['MaterialID']] = array(); |
|
285 | } |
|
286 | ||
287 | $resultTable[$mf['MaterialID']][$tableColumnIds[$mf->FieldID]] = |
|
288 | !empty($mf->Value) ? $mf->Value : (!empty($mf->numeric_value) ? $mf->numeric_value : $mf->key_value); |
|
@@ 391-393 (lines=3) @@ | ||
388 | ||
389 | /** @var \samson\activerecord\material $dbTableRow Material object (table row) */ |
|
390 | foreach ($materialFieldQuery->exec() as $mf) { |
|
391 | if (!is_array($resultTable[$mf['MaterialID']])) { |
|
392 | $resultTable[$mf['MaterialID']] = array(); |
|
393 | } |
|
394 | ||
395 | $resultTable[$mf['MaterialID']][$tableColumnIds[$mf->FieldID]] = |
|
396 | !empty($mf->Value) ? $mf->Value : (!empty($mf->numeric_value) ? $mf->numeric_value : $mf->key_value); |