public function __call($method, $arguments) { if (!$this->query) { throw new DoctrineSearchException('No client query has been provided using Query#searchWith().'); } call_user_func_array(array($this->query, $method), $arguments); return $this; }