= " . $values[0],"p.val-6ren">
gpt4 book ai didi

php - 不允许学说 2.0 Orx

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:39:30 25 4
gpt4 key购买 nike

代码

$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])
)
));

错误信息:

Expression of type 'Doctrine\ORM\Query\Expr\Orx' not allowed in this context.

问题

orx -> andx -> orx

这是学说限制还是我的错?

最佳答案

这是一个known error并将在下一个 Doctrine 版本(版本 2.2)中修复

关于php - 不允许学说 2.0 Orx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9824066/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com