protected function getWheres() { if (!($result = $this->getDynamicWhere())) { $result = parent::getWheres(); } return $result; }
public function filterQuery(sql\query\parser\Basic $query) { $query->setWhere($this->getForeign(), '=', $this->getParent()->getElementArgument('id')); }