@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
at upstream/main 30 lines 929 B view raw
1@title Using Edges 2@group developer 3 4Guide to the Edges infrastructure. 5 6= Overview = 7 8Edges are a generic way of storing a relationship between two objects (like a 9Task and its attached files). 10 11An edge is defined by a source PHID (the edge origin), a destination PHID 12(the edge destination) and an edge type (which describes the relationship, 13like "is subscribed to" or "has attached file"). 14 15Every edge is directional, and stored alongside the source object. Some edges 16are configured to automatically write an inverse edge, effectively building 17a bidirectional relationship. The strength of storing relationships like this 18is that they work when databases are partitioned or sharded. 19 20= Reading Edges = 21 22You can load edges with @{class:PhabricatorEdgeQuery}. 23 24= Writing Edges = 25 26You can edit edges with @{class:PhabricatorEdgeEditor}. 27 28= Edges and Lisk = 29 30@{class:PhabricatorLiskDAO} includes some builtin support for edges.