public function parse($entryKey, &$whereClause, ParameterRegistry $parameters)
 {
     $this->property->parse($entryKey, $whereClause);
     $whereClause .= sprintf(" %s ", $this->operator);
     if ($this->expression instanceof OrmProperty) {
         $this->expression->parse($entryKey, $whereClause);
     } else {
         $whereClause .= sprintf("(%s)", $parameters->register($this->expression));
     }
 }
Exemple #2
0
 public function parse($entryKey, &$whereClause, ParameterRegistry $parameters)
 {
     $this->propertyName->parse($entryKey, $whereClause);
     if (null === $this->expression) {
         $whereClause .= " IS NOT NULL";
     } else {
         $whereClause .= " <> ";
         if ($this->expression instanceof OrmProperty) {
             $this->expression->parse($entryKey, $whereClause);
         } else {
             $whereClause .= $parameters->register($this->expression);
         }
     }
 }