public function invoke($name, array $args)
    {
        $signature = $name . ':' . serialize($args);

        if (!isset($this->cache[$signature])) {
            $this->cache[$signature] = call_user_func_array(array($this->repository, $name), $args);
        }

        return $this->cache[$signature];
    }
public function invoke($name, array $args)
    {
        $signature = $name . ':' . serialize($args);

        if (!isset($this->cache[$signature])) {
            $this->cache[$signature] = call_user_func_array(array($this->repository, $name), $args);
        }

        return $this->cache[$signature];
    }
public function invoke ( $ name , array $ args ) { $ signature = $ name . ':' . serialize ( $ args ) ; if ( ! isset ( $ this -> cache [ $ signature ] ) ) { $ this -> cache [ $ signature ] = call_user_func_array ( array ( $ this -> repository , $ name ) , $ args ) ; } return $ this -> cache [ $ signature ] ; }
Read results from cache or proxy to wrapped doctrine repository.

@param string $name
@param array $args
@return mixed
Read results from cache or proxy to wrapped doctrine repository .