Form filter in symfony: imposible when a field is type "date"

Posted by user248959 on Stack Overflow See other posts from Stack Overflow or by user248959
Published on 2010-01-12T14:39:52Z Indexed on 2010/05/28 19:02 UTC
Read the original article Hit count: 164

Filed under:

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

© Stack Overflow or respective owner

Related posts about symfony