Skip to content
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

Filter for a "IS_NULL" Field #279

Closed
JackJones opened this issue Sep 9, 2011 · 6 comments
Closed

Filter for a "IS_NULL" Field #279

JackJones opened this issue Sep 9, 2011 · 6 comments

Comments

@JackJones
Copy link

Currently it isn't possible in the Filter for filtering on a field with one have the values "NULL" and "1".

@webdevilopers
Copy link
Contributor

Can you provide a code example? Have you tried doctrine_orm_callback?
http://sonata-project.org/bundles/doctrine-orm-admin/master/doc/reference/filter_field_definition.html#callback

Possibly related:
#2230

@webdevilopers
Copy link
Contributor

No feedback. Possible solutions:

If we don't want to feature this filter type the issue should be closed @soullivaneuh .

@soullivaneuh
Copy link
Member

@webdevilopers your links are workaround with callback method IMO.

I keep this issue open. Having a IS_NULL filter is not a bad idea and contributors are free to make PR about that. 👍

@webdevilopers
Copy link
Contributor

👍

Here is my current attempt implementing the SonataCoreBundle type constants and translation domain:
https://gist.github.com/webdevilopers/c04abcff801c7837d25f

@core23 core23 added this to the 2.4 milestone Feb 12, 2016
@soullivaneuh soullivaneuh removed this from the 2.4 milestone Apr 19, 2016
@SonataCI SonataCI removed the must have label May 2, 2016
@core23 core23 added the bug label Jul 24, 2016
@jordisala1991
Copy link
Member

Is there any change that this has been implemented in all those years?

sonata-project/SonataDoctrineORMAdminBundle#649
sonata-project/SonataDoctrineORMAdminBundle#650

WDYT @soullivaneuh , can this be closed or it is still relevant?

@core23
Copy link
Member

core23 commented Mar 15, 2019

This issue is very old. Feel free to reopen, if the error still exists.

A PR would be welcome if you reopen this issue.

@core23 core23 closed this as completed Mar 15, 2019
ft-1408 pushed a commit to intexsys/SonataAdminBundle that referenced this issue Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants