EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Add null as option to NumericFilter

Open wizhippo opened this issue 3 years ago • 3 comments

Currently, when using the numeric filter there is no way to specify you want null.

You can use the NullFilter but you can't use both at the same time.

wizhippo avatar Nov 19 '21 15:11 wizhippo

I ran into a similar problem with DateTimeFilter and I think it's more of a bug.

If I turn on the filter and compare whether the value is empty (null), it executes a database query with entity.propertyName = null instead of the correct entity.propertyName is null. And likewise for not equal, != null instead of IS NOT null.

LukasLangr avatar Dec 02 '21 18:12 LukasLangr

Hello, sorry for digging up this old issue, but has anyone found a workaround for this?

Thanks!

eexit avatar Sep 05 '23 09:09 eexit

Subscribing.

apsylone avatar Feb 09 '24 21:02 apsylone