Skip to content


DDC-2911: IndexBy doesn' work with arbitrary join #3670

doctrinebot opened this Issue · 0 comments

2 participants


Jira issue originally created by user koc:

        $statsQb = $em->createQueryBuilder()
            ->select('d AS date')
            ->from('MetalStatisticBundle:Day', 'd', '')
            ->leftJoin('MetalStatisticBundle:StatsDaily', 'sd', 'WITH', ' =', '')
            ->addSelect('sd AS stats')
            ->andWhere(' = :company_id')
            ->setParameter('company_id', $company->getId())
            ->orderBy('', 'DESC')

expected: array like

2012-10-10 => array(date => object, stats => object)
2012-10-09 => array(date => object)
2012-10-08 => array(date => object, stats => object)

got: exception Expected Literal, got 'BY'

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.