Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1255

Can't add instance of Andx to QueryBuilder through andWhere

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.6
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      ArchLinux + LAMP + Zend + Doctrine

      Description

      $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 '(network_hard_node_hdd.size >= '500') AND (network_hard_node_hdd.size <= '3400')' (length=80)

        Issue Links

          Activity

          Hide
          Benjamin Eberlei added a comment -

          Duplicate of DDC-1260

          Show
          Benjamin Eberlei added a comment - Duplicate of DDC-1260

            People

            • Assignee:
              Benjamin Eberlei
              Reporter:
              Yuriy Ishchenko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: