-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
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
Handle all hydration mode in QueryResultDynamicReturnTypeExtension #453
Conversation
aa4e98e
to
8b28264
Compare
7d74c22
to
024d819
Compare
024d819
to
d8d8f72
Compare
Hi @ondrejmirtes, would you have time to take a new look on this and tell me if you encounter any issue on your personnal projects with this PR with all the new fixes provided. Thanks :) |
Hi @ondrejmirtes, happy new year. Any feedback about how I could help moving this PR forward ?
|
d8d8f72
to
a268dbc
Compare
I can merge this, test 4 real world projects, collect errors and then revert it again. |
Thanks, please ping me on any issue. I'll make myself available. |
Real world project number 1: 48 new errors, most are "Casting to int something that's already int.". A few real bugs found. But the PR is not currently usable because Real world project number 2: 21 new errors, some queries use $qb = $this->createQueryBuilder('a');
$result = $qb
->select('a.one, a.two, a.three')
->andWhere($qb->expr()->in('a.four', $four))
->orderBy('a.date', 'ASC')
->getQuery()
->getResult(AbstractQuery::HYDRATE_SCALAR); Can you please look into this bug? Reverting the change for now. |
Great.
Sure, what was the inferred type before |
I'm sorry to be wrong here. The type before was |
Ok I see. I had a test for
So I assume that in your example, It's not easy in those case to infer the correct type. |
Since there was recent revert to release 1.3.8, this PR has: