|
@@ 508-510 (lines=3) @@
|
| 505 |
|
foreach ($query->entity(CMS::MATERIAL_FIELD_RELATION_ENTITY) |
| 506 |
|
->where('MaterialID', $tableRowsIDs) |
| 507 |
|
->whereCondition($localizationFieldCond)->exec() as $mf) { |
| 508 |
|
if (!is_array($resultTable[$mf['MaterialID']])) { |
| 509 |
|
$resultTable[$mf['MaterialID']] = array(); |
| 510 |
|
} |
| 511 |
|
|
| 512 |
|
$resultTable[$mf['MaterialID']][$tableColumnIds[$mf->FieldID]] = |
| 513 |
|
!empty($mf->Value) ? $mf->Value : (!empty($mf->numeric_value) ? $mf->numeric_value : $mf->key_value); |
|
@@ 616-618 (lines=3) @@
|
| 613 |
|
|
| 614 |
|
/** @var \samson\activerecord\material $dbTableRow Material object (table row) */ |
| 615 |
|
foreach ($materialFieldQuery->exec() as $mf) { |
| 616 |
|
if (!is_array($resultTable[$mf['MaterialID']])) { |
| 617 |
|
$resultTable[$mf['MaterialID']] = array(); |
| 618 |
|
} |
| 619 |
|
|
| 620 |
|
$resultTable[$mf['MaterialID']][$tableColumnIds[$mf->FieldID]] = |
| 621 |
|
!empty($mf->Value) ? $mf->Value : (!empty($mf->numeric_value) ? $mf->numeric_value : $mf->key_value); |