Fix “number of bound variables does not match number of tokens“, for doctrine 2.3.0