Use application PHIDs for application transactions

Summary: Ref T2715. Ref T3578. Load application transactions through application PHID infrastructure.

Test Plan: Viewed feed, saw successful loads of application transaction objects and rendered feed stories.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2715, T3578

Differential Revision: https://secure.phabricator.com/D6617
This commit is contained in:
epriestley
2013-07-29 06:51:19 -07:00
parent 1720d651da
commit 5cc3bbf721
22 changed files with 101 additions and 102 deletions

View File

@@ -43,7 +43,7 @@ foreach ($comments as $comment) {
$comment_phid = PhabricatorPHID::generateNewPHID(
PhabricatorPHIDConstants::PHID_TYPE_XCMT);
$xaction_phid = PhabricatorPHID::generateNewPHID(
PhabricatorPHIDConstants::PHID_TYPE_XACT,
PhabricatorApplicationTransactionPHIDTypeTransaction::TYPECONST,
PhabricatorSlowvotePHIDTypePoll::TYPECONST);
$source = PhabricatorContentSource::newForSource(

View File

@@ -27,11 +27,11 @@ foreach ($rows as $row) {
}
$comment_phid = PhabricatorPHID::generateNewPHID(
PhabricatorPHIDConstants::PHID_TYPE_XACT,
PhabricatorApplicationTransactionPHIDTypeTransaction::TYPECONST,
$type);
$xaction_phid = PhabricatorPHID::generateNewPHID(
PhabricatorPHIDConstants::PHID_TYPE_XACT,
PhabricatorApplicationTransactionPHIDTypeTransaction::TYPECONST,
$type);
queryfx(