ControllerExtraBundle icon indicating copy to clipboard operation
ControllerExtraBundle copied to clipboard

Problems using dates in the paginator where params

Open jcornide opened this issue 8 years ago • 1 comments

Hi, I'm having a problem trying to filter date fields using the where params. I.e. if I do the following (expiration_date is a DateTime in the entity)

   /* 
    * 
    *      wheres = {
    *          {"x", "expiration_date", ">=", "?expiration_date?", true},
    *      }
    * )

The problem is that by doing this I get a transformation error: Can not transform string to DateTime.

Is there any workaround? Is it possible to implement something to be able to search by datetime?

Thanks!

jcornide avatar Jul 15 '15 13:07 jcornide

@jcornide added providers collector in new version 2.0.0, so a new provider could be added in order to do this transformation

mmoreram avatar Jan 14 '17 19:01 mmoreram