sonata-project/SonataAdminBundle — Issue #453: Adding a datetime filter throws an exception
Author: XWB
Created: 2011-12-09 10:40:07+00:00
State: open

Got a table with a MySQL datetime column. I get an exception when I try to add the datetime as a filter in the overview.

public function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper->add('pubTime');
}

Expected argument of type "string or Symfony\Component\Form\FormTypeInterface", boolean" given

Changing it to $datagridMapper->add('pubTime', 'datetime') fails also:

No attached service to type named `datetime`