Doctrine\ODM\CouchDB\DocumentManager::getCouchDBClient PHP Method

getCouchDBClient() public method

public getCouchDBClient ( ) : Doctrine\CouchDB\CouchDBClient
return Doctrine\CouchDB\CouchDBClient
    public function getCouchDBClient()
    {
        return $this->couchDBClient;
    }

Usage Example

 /**
  * Find a single document by its identifier
  *
  * @param mixed $query A single identifier or an array of criteria.
  * @param array $select The fields to select.
  * @return Doctrine\ODM\CouchDB\MongoCursor $cursor
  * @return object $document
  */
 public function find($id)
 {
     $uow = $this->dm->getUnitOfWork();
     $response = $this->dm->getCouchDBClient()->findDocument($id);
     if ($response->status == 404) {
         return null;
     }
     $hints = array();
     return $uow->createDocument($this->documentName, $response->body, $hints);
 }
All Usage Examples Of Doctrine\ODM\CouchDB\DocumentManager::getCouchDBClient