Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/query/PhortuneMerchantQuery.php
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | if ($this->memberPHIDs !== null) { | ||||
$this->memberPHIDs); | $this->memberPHIDs); | ||||
} | } | ||||
$where[] = $this->buildPagingClause($conn); | $where[] = $this->buildPagingClause($conn); | ||||
return $this->formatWhereClause($where); | return $this->formatWhereClause($where); | ||||
} | } | ||||
private function buildJoinClause(AphrontDatabaseConnection $conn) { | protected function buildJoinClause(AphrontDatabaseConnection $conn) { | ||||
$joins = array(); | $joins = array(); | ||||
if ($this->memberPHIDs !== null) { | if ($this->memberPHIDs !== null) { | ||||
$joins[] = qsprintf( | $joins[] = qsprintf( | ||||
$conn, | $conn, | ||||
'LEFT JOIN %T e ON m.phid = e.src AND e.type = %d', | 'LEFT JOIN %T e ON m.phid = e.src AND e.type = %d', | ||||
PhabricatorEdgeConfig::TABLE_NAME_EDGE, | PhabricatorEdgeConfig::TABLE_NAME_EDGE, | ||||
PhortuneMerchantHasMemberEdgeType::EDGECONST); | PhortuneMerchantHasMemberEdgeType::EDGECONST); | ||||
Show All 10 Lines |