lib/Doctrine/ORM/Query/SqlWalker.php
public function walkIndexBy($indexBy)
    {
        $pathExpression = $indexBy->simpleStateFieldPathExpression;
        $alias          = $pathExpression->identificationVariable;
        $field          = $pathExpression->field;

        if (isset($this->scalarFields[$alias][$field])) {
            $this->rsm->addIndexByScalar($this->scalarFields[$alias][$field]);

            return;
        }

        $this->rsm->addIndexBy($alias, $field);
    }
public function walkIndexBy($indexBy)
    {
        $pathExpression = $indexBy->simpleStateFieldPathExpression;
        $alias          = $pathExpression->identificationVariable;
        $field          = $pathExpression->field;

        if (isset($this->scalarFields[$alias][$field])) {
            $this->rsm->addIndexByScalar($this->scalarFields[$alias][$field]);

            return;
        }

        $this->rsm->addIndexBy($alias, $field);
    }
public function walkIndexBy ( $ indexBy ) { $ pathExpression = $ indexBy -> simpleStateFieldPathExpression ; $ alias = $ pathExpression -> identificationVariable ; $ field = $ pathExpression -> field ; if ( isset ( $ this -> scalarFields [ $ alias ] [ $ field ] ) ) { $ this -> rsm -> addIndexByScalar ( $ this -> scalarFields [ $ alias ] [ $ field ] ) ; return ; } $ this -> rsm -> addIndexBy ( $ alias , $ field ) ; }
Walks down a IndexBy AST node.

@param AST\IndexBy $indexBy
Walks down a IndexBy AST node .