public function hydrateWith($hydrationQuery, $parameter = null)
    {
        $this->hydrationQuery = $hydrationQuery;
        if ($parameter) {
            $this->hydrationParameter = $parameter;
        }
        return $this;
    }
public function hydrateWith($hydrationQuery, $parameter = null)
    {
        $this->hydrationQuery = $hydrationQuery;
        if ($parameter) {
            $this->hydrationParameter = $parameter;
        }
        return $this;
    }
public function hydrateWith ( $ hydrationQuery , $ parameter = null ) { $ this -> hydrationQuery = $ hydrationQuery ; if ( $ parameter ) { $ this -> hydrationParameter = $ parameter ; } return $ this ; }
Set a custom Doctrine Query to execute in order to hydrate the search
engine results into required entities. The assumption is made the the
search engine result id is correlated to the entity id. An optional
query parameter override can be specified.

@param object $hydrationQuery
@param string $parameter
Set a custom Doctrine Query to execute in order to hydrate the search engine results into required entities . The assumption is made the the search engine result id is correlated to the entity id . An optional query parameter override can be specified .