src/SqlGenerator.php
public function getCountSQL()
        {
            if (!$this->query->getTable() instanceof Table) {
                throw new Exception('Trying to generate sql when no table is being used.');
            }
            $sql = $this->generateCountSQL();
            $sql .= $this->generateJoinSQL();
            $sql .= $this->generateWhereSQL();

            return $sql;
        }
public function getCountSQL()
        {
            if (!$this->query->getTable() instanceof Table) {
                throw new Exception('Trying to generate sql when no table is being used.');
            }
            $sql = $this->generateCountSQL();
            $sql .= $this->generateJoinSQL();
            $sql .= $this->generateWhereSQL();

            return $sql;
        }
public function getCountSQL ( ) { if ( ! $ this -> query -> getTable ( ) instanceof Table ) { throw new Exception ( 'Trying to generate sql when no table is being used.' ) ; } $ sql = $ this -> generateCountSQL ( ) ; $ sql .= $ this -> generateJoinSQL ( ) ; $ sql .= $ this -> generateWhereSQL ( ) ; return $ sql ; }
Generate a "count" query

@return string
Generate a count query