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

Метод order #86

Closed
AlexandrGordeev opened this issue Apr 26, 2015 · 3 comments
Closed

Метод order #86

AlexandrGordeev opened this issue Apr 26, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@AlexandrGordeev
Copy link
Contributor

В методе отсутствует возможность использовать функции без указания колонки для сортировки, что приводит к неправильному запросу.
OrmModel::objects()->order(['RAND ()'])->all();

@qantus
Copy link
Contributor

qantus commented Apr 27, 2015

OrmModel::objects()->order(['?])->all();

See: https://github.com/studio107/Mindy_Orm/blob/master/src/Mindy/Orm/QuerySet.php#L793

@AlexandrGordeev
Copy link
Contributor Author

Закрыто, добавить в readme

@max107 max107 self-assigned this Apr 27, 2015
@qantus
Copy link
Contributor

qantus commented Jun 26, 2015

Добавлено в Readme

@qantus qantus closed this as completed Jun 26, 2015
@max107 max107 modified the milestone: 1.0 Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants