ControllerExtraBundle
ControllerExtraBundle copied to clipboard
Problems using dates in the paginator where params
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 added providers collector in new version 2.0.0, so a new provider could be added in order to do this transformation