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:
Expression of type 'Doctrine\ORM\Query\Expr\Orx' not allowed in this context.
Question
orx -> andx -> orx
Is this a doctrine limitation or is it my fault?
It is a known error and will be fixed in the next Doctrine release (Version 2.2)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With