Skip to content

Conversation

@inoas
Copy link
Contributor

@inoas inoas commented Jun 7, 2017

@lorenzo when writing this I thought that there should possibly be Query::PREPEND and Query::APPEND (latter is default behavior) to control Order building...

@lorenzo when writing this I thought that there should possibly be Query::PREPEND and Query::APPEND (latter is default behavior) to control Order building...
Copy link
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have a formatting error.

When calling ``order()`` multiple times on a query multiple clauses will be appended.
However, when using finders you may sometimes need to overwrite the ``ORDER BY``.
Set the second parameter of ``order()`` (as well as ``orderAsc()`` or ``orderDesc()``) to
``Query::OVERWRITE`` or to ``true``;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to end in :: to make the code section pre-formatted.

@inoas
Copy link
Contributor Author

inoas commented Jun 20, 2017

Good?

@markstory markstory merged commit c7f1caa into cakephp:3.0 Jun 22, 2017
HavokInspiration added a commit that referenced this pull request Jun 23, 2017
okinaka added a commit to okinaka/docs that referenced this pull request Jun 24, 2017
okinaka added a commit to okinaka/docs that referenced this pull request Jun 24, 2017
chinpei215 added a commit that referenced this pull request Jun 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants