Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/edges/query/PhabricatorEdgeQuery.php
| Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | foreach ($sources as $type => $phids) { | ||||
| if ($data_ids) { | if ($data_ids) { | ||||
| $data_rows = queryfx_all( | $data_rows = queryfx_all( | ||||
| $conn_r, | $conn_r, | ||||
| 'SELECT edgedata.* FROM %T edgedata WHERE id IN (%Ld)', | 'SELECT edgedata.* FROM %T edgedata WHERE id IN (%Ld)', | ||||
| PhabricatorEdgeConfig::TABLE_NAME_EDGEDATA, | PhabricatorEdgeConfig::TABLE_NAME_EDGEDATA, | ||||
| $data_ids); | $data_ids); | ||||
| foreach ($data_rows as $row) { | foreach ($data_rows as $row) { | ||||
| $data_map[$row['id']] = idx( | $data_map[$row['id']] = idx( | ||||
| json_decode($row['data'], true), | phutil_json_decode($row['data']), | ||||
| 'data'); | 'data'); | ||||
| } | } | ||||
| } | } | ||||
| foreach ($edges as $key => $edge) { | foreach ($edges as $key => $edge) { | ||||
| $edges[$key]['data'] = idx($data_map, $edge['dataID'], array()); | $edges[$key]['data'] = idx($data_map, $edge['dataID'], array()); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines | |||||