made Doctrine_Query ignore empty orderby parameters
This commit is contained in:
parent
d1b9daa2b1
commit
0d2e83ff8a
@ -445,6 +445,9 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
|
||||
*/
|
||||
public function addOrderBy($orderby)
|
||||
{
|
||||
if (empty($orderby)) {
|
||||
return $this;
|
||||
}
|
||||
$class = 'Doctrine_Query_Orderby';
|
||||
$parser = new $class($this);
|
||||
$this->parts['orderby'][] = $parser->parse($orderby);
|
||||
|
Loading…
x
Reference in New Issue
Block a user