Exemplo n.º 1
0
 protected function buildHavingClauseParts(AphrontDatabaseConnection $conn)
 {
     $having = parent::buildHavingClauseParts($conn);
     if ($this->hasOpenParents !== null) {
         if (!$this->hasOpenParents) {
             $having[] = qsprintf($conn, 'COUNT(parent.phid) = 0');
         }
     }
     if ($this->hasOpenSubtasks !== null) {
         if (!$this->hasOpenSubtasks) {
             $having[] = qsprintf($conn, 'COUNT(subtask.phid) = 0');
         }
     }
     return $having;
 }