Skip to content


DDC-1255: Can't add instance of Andx to QueryBuilder through andWhere #1865

doctrinebot opened this Issue · 3 comments

2 participants


Jira issue originally created by user ishenkoyv:

$this->query->andWhere($where) thows the \InvalidArgumentException("Expression of type '$class' not allowed in this context.") at ORM/Query/Expr/Base.php : 64 as $allowedClasses of ORM/Query/Expr/Andx.php doesn't contains Doctrine\ORM\Query\Expr\Andx

$this->_query instance of Doctrine\ORM\QueryBuilder
$where instance of Doctrine\ORM\Query\Expr\Andx
(string) $where - string '(networkhard_node_hdd.size >= '500') AND (network_hard_nodehdd.size <= '3400')' (length=80)


Comment created by @beberlei:

Duplicate of DDC-1260


Issue was closed with resolution "Duplicate"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot closed this
@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.