Doctrine Common
  1. Doctrine Common
  2. DCOM-214

Collection Criteria isNull does not work well


    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: Collections
    • Environment:
      PHP 5.4.4, PostgreSQL 9.1


      I'm using the Collection project and its Criteria building part. I'm not sure if I'm putting this bug to the good project. Please, correct me if not.

      There is bug in method isNull:

      This produces SQL command where is 'IS ?' and null value is passed as param. This is fail.

      Code example:

        $expr = Criteria::expr();
        $criteria = Criteria::create()
      	->where($expr->lte('num', 42))
        return $this->myCollection->matching($criteria);

      This produces SQL:

       SELECT ... FROM ... WHERE num <= ? AND deleted IS ? 

      with params

      [ 42, null ]


        Jan Pecek created issue -

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to failed: Error in remote call to 'FishEye 0 (' ( [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DCOM-214, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)


          • Assignee:
            Benjamin Eberlei
            Jan Pecek
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: