Commit 0d2e83ff authored by romanb's avatar romanb

made Doctrine_Query ignore empty orderby parameters

parent d1b9daa2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment