Doctrine\Search\Query::__call PHP Méthode

__call() public méthode

Magic method to pass query building to the underlying query object, saving the need to abstract.
public __call ( string $method, array $arguments )
$method string
$arguments array
    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;
    }