Exemple #1
0
 public function setWhere($val1, $sOp, $val2, $sLog = 'AND')
 {
     if ($where = $this->getDynamicWhere()) {
         $this->addDynamicWhereCall($where->call('addStatic', array($this->getWindow()->toString(array($val1, ' ', $sOp, ' ', $val2)))));
     } else {
         parent::setWhere($val1, $sOp, $val2, $sLog);
     }
 }
Exemple #2
0
 public function filterQuery(sql\query\parser\Basic $query)
 {
     $query->setWhere($this->getForeign(), '=', $this->getParent()->getElementArgument('id'));
 }