Exemplo n.º 1
0
 protected function addWhere(Doctrine_Query_Abstract $doctrine, $condtion, $value)
 {
     $whereExist = $doctrine->getParams('where');
     if ($whereExist[1] > 0) {
         return $doctrine->addWhere($condtion, $value);
     } else {
         return $doctrine->where($condtion, $value);
     }
 }