lib/Doctrine/CouchDB/Attachment.php
private function lazyLoad()
    {
        if ($this->stub) {
            $response = $this->httpClient->request('GET', $this->path, null, true); // raw request
            if ($response->status != 200) {
                throw HTTPException::fromResponse($this->path, $response);
            }
            $this->stub = false;
            $this->binaryData = $response->body;
            $this->data = \base64_encode($this->binaryData);
        }
    }
private function lazyLoad()
    {
        if ($this->stub) {
            $response = $this->httpClient->request('GET', $this->path, null, true); // raw request
            if ($response->status != 200) {
                throw HTTPException::fromResponse($this->path, $response);
            }
            $this->stub = false;
            $this->binaryData = $response->body;
            $this->data = \base64_encode($this->binaryData);
        }
    }
private function lazyLoad ( ) { if ( $ this -> stub ) { $ response = $ this -> httpClient -> request ( 'GET' , $ this -> path , null , true ) ; // raw request if ( $ response -> status != 200 ) { throw HTTPException :: fromResponse ( $ this -> path , $ response ) ; } $ this -> stub = false ; $ this -> binaryData = $ response -> body ; $ this -> data = \ base64_encode ( $ this -> binaryData ) ; } }
Lazy Load Data from CouchDB if necessary.

@return void
Lazy Load Data from CouchDB if necessary .