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
After this commit (1d68711) we get a different result for queries where we alias a column of a relation.
$rs = Doctrine_Query::create() ->select('c.id, h.hours as hrs') ->from('Calculation c') ->innerJoin('c.History h') ->execute([], Doctrine_Core::HYDRATE_ARRAY); var_dump($rs); /* // After the commit we get: array(1) { [0]=> array(2) { ["id"]=> string(5) "1" ["hrs"]=> string(4) "3.00" } } // Before it was this (and therefore also the expected result): array(1) { [0]=> array(3) { ["id"]=> string(5) "1" ["hrs"]=> string(4) "3.00" ["History"]=> array(2) { [0]=> array(2) { ["id"]=> string(4) "1" ["hrs"]=> string(4) "3.00" } [1]=> array(2) { ["id"]=> string(3) "2" ["hrs"]=> string(4) "2.00" } } } } */
The text was updated successfully, but these errors were encountered:
Hello @Phennim
Nice catch.
I added failing test for this issue, see #135 (comment)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
After this commit (1d68711) we get a different result for queries where we alias a column of a relation.
The text was updated successfully, but these errors were encountered: