Doctrine\DBAL\Query\QueryBuilder::getQueryPart PHP Method

getQueryPart() public method

Gets a query part by its name.
public getQueryPart ( string $queryPartName ) : mixed
$queryPartName string
return mixed
    public function getQueryPart($queryPartName)
    {
        return $this->sqlParts[$queryPartName];
    }

Usage Example

コード例 #1
0
ファイル: Doctrine.php プロジェクト: solire/trieur
 /**
  * Returns the sql expression to determinate the distincts numbers of lines
  *
  * @return string
  */
 protected function getDistinct()
 {
     if (isset($this->conf->group)) {
         return $this->conf->group;
     }
     return implode(', ', $this->queryBuilder->getQueryPart('select'));
 }
All Usage Examples Of Doctrine\DBAL\Query\QueryBuilder::getQueryPart