Bundle/CoreBundle/Repository/StateFullRepositoryTrait.php
public function run($method = 'getResult', $hydrationMode = Query::HYDRATE_OBJECT, $autoClear = true)
    {
        $results = $this->qb->getQuery()->$method($hydrationMode);
        if ($autoClear) {
            $this->clearInstance();
        }

        return $results;
    }
public function run($method = 'getResult', $hydrationMode = Query::HYDRATE_OBJECT, $autoClear = true)
    {
        $results = $this->qb->getQuery()->$method($hydrationMode);
        if ($autoClear) {
            $this->clearInstance();
        }

        return $results;
    }
public function run ( $ method = 'getResult' , $ hydrationMode = Query :: HYDRATE_OBJECT , $ autoClear = true ) { $ results = $ this -> qb -> getQuery ( ) -> $ method ( $ hydrationMode ) ; if ( $ autoClear ) { $ this -> clearInstance ( ) ; } return $ results ; }
Run active query.

@param string $method        The method to run
@param string $hydrationMode How the results will be (Object ? Array )
@param bool   $autoClear     AutoClear means reset active instance

@return array()
Run active query .