Skip to content


DCOM-214: Collection Criteria isNull does not work well #520

doctrinebot opened this Issue · 0 comments

2 participants


Jira issue originally created by user honzap:

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 ]

@doctrinebot doctrinebot added the Bug label
@beberlei beberlei was assigned by doctrinebot
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.