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); } }
public function filterQuery(sql\query\parser\Basic $query) { $query->setWhere($this->getForeign(), '=', $this->getParent()->getElementArgument('id')); }