1
0
mirror of synced 2025-01-20 15:31:40 +03:00

made Doctrine_Query ignore empty orderby parameters

This commit is contained in:
romanb 2007-04-13 18:03:44 +00:00
parent d1b9daa2b1
commit 0d2e83ff8a

View File

@ -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);