SQLSTATE[HY093]: Invalid parameter number: mixed named and positional parameters
- by Gremo
Weird error and this is driving me crazy all the day. To me it seems a bug because there are no positional parameters in my query. Here is the method:
public function getAll(User $user, DateTime $start = null, DateTime $end = null)
{
$params = array('user_id' => $user->getId());
$rsm = new \Doctrine\ORM\Query\ResultSetMapping(); //…