= " . $values[0],"p.value_a <= " . $va...">

Doctrine 2.0 Orx Not Allowed

the code

$qb->andWhere(
   $qb->expr()->orx(
        $qb->expr()->andx("p.value_a >= " . $values[0],"p.value_a <= " . $values[1]),
        $qb->expr()->orx(
             $qb->expr()->andx("p.venture_min_value_a >= " . $values[0],"p.venture_min_value_a <= " . $values[1]),
             $qb->expr()->andx("p.venture_max_value_a >= " . $values[0],"p.venture_max_value_a <= " . $values[1])
                        )
    ));

Error message:

An expression like 'Doctrine \ ORM \ Query \ Expr \ Orx' is not allowed in this context.

Question

orx → andx → orx

Is this a limitation of doctrine or is it my fault?

+5
source share
1 answer

This is a known bug and will be fixed in the next version of Doctrine (version 2.2)

+4
source

All Articles