Removed extra dot from '.columnName' if tableAlias was not present & doctrine's nested results#37
Open
alihammad-gist wants to merge 1 commit intodudapiotr:masterfrom
alihammad-gist:master
Open
Removed extra dot from '.columnName' if tableAlias was not present & doctrine's nested results#37alihammad-gist wants to merge 1 commit intodudapiotr:masterfrom alihammad-gist:master
alihammad-gist wants to merge 1 commit intodudapiotr:masterfrom
alihammad-gist:master
Conversation
…d added the ability to reference nested object from doctrine resultset
Author
|
Don't merge this, This alias is being used in Order By clause too, which doesn't work. Select r as rank, COUNT(m) as members_count FROM Staff\Entity\Rank r LEFT JOIN r.members as m GROUP BY r.id ORDER BY rank.id asc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also added the ability to reference nested "aliased" results generated by queries like below. I have not changed the behavior which was present already. Sorry for un-necessary conflicts because of my auto formatting tool .
Sample result set.
As you can see the immediate child of top-level array is another array not the entity itself. Below is a sample DataTable for queries like this.