Skip to content

Instantly share code, notes, and snippets.

@joergbasedow
joergbasedow / SonataAdmin Filter Entities by NULL Fields
Last active August 5, 2018 03:28
I'm trying to filter entities by wether a fields value is NULL/NOT NULL/BOTH in SonataAdminBundle. Is there a more concise way?
<?php
// ...
class ProductAdmin extends SonataAdmin
{
// ...
protected function configureDatagridFilters(DatagridMapper $filter)
{

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

Composer Related