Form filter in symfony: imposible when a field is type "date"
- by user248959
Hi,
anyone has tried to create a symfony form filter from a class which has a field of type "date" ?
When i do it, i get this error:
500 | Internal Server Error |
Doctrine_Connection_Mysql_Exception
SQLSTATE[HY093]: Invalid parameter
number: number of bound variables does
not match number of tokens stack trace
I think the error dependens on this command:
'SELECT b.id AS b_id, b.day AS b_day FROM birthday b WHERE b.day = ? AND
b.day <= ?', array('month' = '1','day' = '2', 'year' = '2014')
but i dont know how can i solve it..
Any idea?
Javi