somewherethere/SonataAdminBundle — comment on commit 741a3d55ccbfbbd9f51430fe641e8bc74c81aad9
File: Form/Type/Filter/DateRangeType.php line 53
By rande:

Instead of creating a ``valueb`` you can create a custom type ``date_range``. So value will be value an array with 2 keys 'from' and 'to' for instance. And this will avoid the test in the twig template.