We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getOneOrNullResult() and getSingleResult() are supported, but only when explicitly specifying the hydration mode
It was stated here that this should be supported, but it seems like the inferred type is mixed. Or did I misunderstood?
$query = $em->createQueryBuilder() ->addSelect('m.id') ->from(Many::class, 'm'); assertType( 'int', $query->getQuery() // ->getSingleScalarResult() ->getSingleResult(Query::HYDRATE_SINGLE_SCALAR) );
Method getSingleColumnResult seems to be not supported as well, is that correct?
cc @arnaud-lb
The text was updated successfully, but these errors were encountered:
Hi @janedbal
Here I meant when explicitly specifying the hydration mode to HYDRATE_OBJECT
HYDRATE_OBJECT
Yes, getSingleColumnResult is not supported currently. I don't think that it can be supported until we support multiple hydration modes.
Sorry, something went wrong.
Thanks for response, do you plan to add support for more hydration modes?
Assuming not. Closing.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
It was stated here that this should be supported, but it seems like the inferred type is mixed. Or did I misunderstood?
Method getSingleColumnResult seems to be not supported as well, is that correct?
cc @arnaud-lb
The text was updated successfully, but these errors were encountered: