protected function applyTypeIsEqual(ProxyQueryInterface $queryBuilder, $field, $data)
    {
        $end = clone $data['value'];
        $end->add(new \DateInterval('P1D'));

        $queryBuilder->field($field)->range($data['value'], $end);
    }
protected function applyTypeIsEqual(ProxyQueryInterface $queryBuilder, $field, $data)
    {
        $end = clone $data['value'];
        $end->add(new \DateInterval('P1D'));

        $queryBuilder->field($field)->range($data['value'], $end);
    }
protected function applyTypeIsEqual ( ProxyQueryInterface $ queryBuilder , $ field , $ data ) { $ end = clone $ data [ 'value' ] ; $ end -> add ( new \ DateInterval ( 'P1D' ) ) ; $ queryBuilder -> field ( $ field ) -> range ( $ data [ 'value' ] , $ end ) ; }
Because we lack a time variable we select a range from the days start to end.

@author Wesley van Opdorp <wesley.van.opdorp@freshheads.com>

@param \Sonata\AdminBundle\Datagrid\ProxyQueryInterface $queryBuilder
@param string                                           $field
@param array                                            $data
Because we lack a time variable we select a range from the days start to end .