protected function getWheres() { if (!($result = $this->getDynamicWhere())) { $result = parent::getWheres(); } return $result; }