protected function buildJoinClauseParts(AphrontDatabaseConnection $conn) { $joins = parent::buildJoinClauseParts($conn); if ($this->shouldJoinBindingTable()) { $joins[] = qsprintf($conn, 'JOIN %T binding ON service.phid = binding.servicePHID', id(new AlmanacBinding())->getTableName()); } return $joins; }
protected function buildJoinClauseParts(AphrontDatabaseConnection $conn) { $joins = parent::buildJoinClauseParts($conn); if ($this->shouldJoinDeviceTable()) { $joins[] = qsprintf($conn, 'JOIN %T device ON device.phid = interface.devicePHID', id(new AlmanacDevice())->getTableName()); } return $joins; }