@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorSearchDocumentRelationship extends PhabricatorSearchDAO {
4
5 protected $relatedPHID;
6 protected $relation;
7 protected $relatedType;
8 protected $relatedTime;
9
10 protected function getConfiguration() {
11 return array(
12 self::CONFIG_TIMESTAMPS => false,
13 self::CONFIG_IDS => self::IDS_MANUAL,
14 self::CONFIG_COLUMN_SCHEMA => array(
15 'relation' => 'text4',
16 'relatedType' => 'text4',
17 'relatedTime' => 'epoch',
18 ),
19 self::CONFIG_KEY_SCHEMA => array(
20 'key_phid' => null,
21 'phid' => array(
22 'columns' => array('phid'),
23 ),
24 'relatedPHID' => array(
25 'columns' => array('relatedPHID', 'relation'),
26 ),
27 'relation' => array(
28 'columns' => array('relation', 'relatedPHID'),
29 ),
30 ),
31 ) + parent::getConfiguration();
32 }
33
34 public function getIDKey() {
35 return 'phid';
36 }
37
38}