-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@ManyToMany relation matching criteria ignores isNull(column) #5587
Comments
But documentation says , that isNull(x) must work: |
I can confirm that this is happening. I'm also experiencing this issue. |
Still happening in 2k19. $this->collection->matching(
\Doctrine\Common\Collections\Criteria::create()
)->matching(
\Doctrine\Common\Collections\Criteria::create()->where(
\Doctrine\Common\Collections\Criteria::expr()->isNull('deletedAt')
)
) Problem is with It uses |
Still an issue. ManyToMany + isNull Criteria is 100% not working. Thx for the pointer to SqlValueVisitor. I guess we need a little PR to add the use case to support isNull? |
@beberlei news about this issue? @MatTheCat |
Well #10587 is open so maintainers will look at it when they’ll got time. |
I have an entity class where ManyMany relation described.
Then Im trying to do something like
IsNull condition is ignored in SqlValueVisitor.php
https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Persisters/SqlValueVisitor.php#L57
And no any IS NULL in final SQL statement.
The text was updated successfully, but these errors were encountered: