-
Notifications
You must be signed in to change notification settings - Fork 116
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
orderBy array #74
Comments
Mind sharing the code used @qlarin ? |
The code which is responsible for orders it's really simple. Something like that:
$query - for example:
$sorts - this is associative array with 2 or 5 fields, if i wanna join another table to query i'm passing 3 extra fields, for example:
I quess problem is with getAllOrderBy() function in NilPortugues\Sql\QueryBuilder\Manipulation\Select |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I came across a problem with select query. When i have tried to join two different tables to sort some results, i couldn't get correct sequence of 'order by' clause.
After analyzed, it seems that you split usual 'order by' from the one which is used in join. It is any chance to get correct sequence? I mean, i would like to get for example:
order by 'table1.col1', 'table2.col1', 'table1.col2'
,but at the moment i have got something like:
order by 'table1.col1', 'table1.col2', 'table2.col1'
.The text was updated successfully, but these errors were encountered: