Please redefine HydratorInterface::hydrate($qb, $options = array()); and remove second parameter from here