Skip to content
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

LimitSubqueryOutputWalker: fix aliasing of property in OrderBy from MappedSuperclass #1377

Merged
merged 2 commits into from
Apr 9, 2015

Conversation

fprochazka
Copy link
Contributor

@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DDC-3680

We use Jira to track the state of pull requests and the versions they got
included in.

@fprochazka fprochazka changed the title Failing test case for broken paginator case LimitSubqueryOutputWalker: fix aliasing of property in OrderBy from MappedSuperclass Apr 8, 2015
@billschaller
Copy link
Member

Thanks - i'll merge after nitpick 👍

@fprochazka
Copy link
Contributor Author

I'm not sure if it's fixed properly. Is this enough?

@billschaller
Copy link
Member

@fprochazka I think so - though there's no functional test for this case...

@fprochazka
Copy link
Contributor Author

@zeroedin-bill now I'm thinking it might be better to reverse the condition and only change the alias if the entity is in inheritance and it's the type of inheritance where you use multiple tables. Because it still might break with STI. Somebody might wanna write tests for that.

@billschaller
Copy link
Member

@fprochazka we need more functional test cases...

@fprochazka
Copy link
Contributor Author

Sure, there is never enough tests :) But I won't be able to write more right now. Soonest would be somewhere around monday and I can't promise that.

@billschaller
Copy link
Member

@fprochazka For now I'll merge this. I'd really appreciate if you could write some functional tests on Monday to cover this scenario if you have time!

Thanks!

billschaller pushed a commit that referenced this pull request Apr 9, 2015
LimitSubqueryOutputWalker: fix aliasing of property in OrderBy from MappedSuperclass
@billschaller billschaller merged commit 3f84be7 into doctrine:master Apr 9, 2015
@fprochazka fprochazka deleted the bugfix/paginator branch April 9, 2015 00:09
@fprochazka
Copy link
Contributor Author

I'll try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants