Example #1
0
 public function getCondition()
 {
     if (is_null($this->getValue())) {
         return null;
     }
     if ($this->getColumn()->getFilterOnName()) {
         return parent::getCondition();
     } else {
         if ((bool) $this->getValue()) {
             return array('nin' => array('no_selection', ''));
         } else {
             return array(array('null' => 1), array('in' => array('no_selection', '')));
         }
     }
 }