public function filterQueryObject(Kdyby\Doctrine\QueryObject $queryObject) { /** @var Model\CMS\Query\UserQuery $queryObject */ if ($this->search !== NULL) { return $queryObject->search($this->search); } return $queryObject; }