loadAllWhere( 'objectPHID = %s AND fieldIndex IN (%Ls)', $revision->getPHID(), array_keys($index_map)); $index_data = mpull($index_data, 'getFieldValue', 'getFieldIndex'); foreach ($index_data as $index => $data) { $field_data[$index_map[$index]] = $data; } } foreach ($aux_fields as $aux_field) { $aux_field->setRevision($revision); $key = $aux_field->getStorageKey(); if ($key) { $aux_field->setValueFromStorage(idx($field_data, $key)); } } return $aux_fields; } }