Homec4science

Add method for loading relative edges

Authored by vrana <jakubv@fb.com> on Aug 21 2012, 02:52.

Description

Add method for loading relative edges

Summary:
More and more relations are going under edges and I can't work with them from Relatives framework.

This doesn't have the nice transitive property of normal relatives (loading relative objects from relatives loads all of them at once) but I can add it when I need it.

I plan to use it in D3085 (after converting relationships to edges).

Test Plan:

$task = id(new ManiphestTask())
  ->loadOneWhere('phid = %s', $phid);
print_r($task->loadRelativeEdges(4));

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3344

Details

Committed
vrana <jakubv@fb.com>Aug 21 2012, 06:11
Pushed
aubortJan 31 2017, 17:16
Parents
rPH8fc5817f65e8: Display draft reviews in revision lists
Branches
Unknown
Tags
Unknown

Event Timeline

vrana <jakubv@fb.com> committed rPH45e93495e409: Add method for loading relative edges (authored by vrana <jakubv@fb.com>).Aug 21 2012, 06:11