DDC-2019: addOrderBy function incomplete #2544

Closed
opened 2026-01-22 13:56:20 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Sep 7, 2012).

Originally assigned to: @asm89 on GitHub.

Jira issue originally created by user jforet:

In QueryBuilder.php, just change or complete addOrderBy function

{quote}
public function addOrderBy($sort, $order = null)
{
$orderBy = ($sort instanceof Expr\OrderBy) ? $sort : new Expr\OrderBy($sort, $order);

return $this->add('orderBy', orderBy, true);

}
{quote}

Originally created by @doctrinebot on GitHub (Sep 7, 2012). Originally assigned to: @asm89 on GitHub. Jira issue originally created by user jforet: In QueryBuilder.php, just change or complete addOrderBy function {quote} public function addOrderBy($sort, $order = null) { $orderBy = ($sort instanceof Expr\OrderBy) ? $sort : new Expr\OrderBy($sort, $order); ``` return $this->add('orderBy', orderBy, true); ``` } {quote}
admin added the Bug label 2026-01-22 13:56:20 +01:00
admin closed this issue 2026-01-22 13:56:21 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 9, 2013):

Comment created by @asm89:

Fixed in 1a163cd48d

@doctrinebot commented on GitHub (Feb 9, 2013): Comment created by @asm89: Fixed in https://github.com/doctrine/doctrine2/commit/1a163cd48dc8b691351f0a9fee3e2286fe0af984
Author
Owner

@doctrinebot commented on GitHub (Feb 9, 2013):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Feb 9, 2013): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2544