PHP Класс Doctrine\ODM\CouchDB\DocumentManager

Наследование: implements Doctrine\Common\Persistence\ObjectManager
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Doctrine\CouchDB\CouchDBClient $couchClient, Configuration $config = null, Doctrine\Common\EventManager $evm = null )
clear ( string $objectName = null ) Clears the ObjectManager. All objects that are currently managed by this ObjectManager become detached.
contains ( object $document ) : boolean
create ( array | Doctrine\CouchDB\CouchDBClient $couchParams, Configuration $config = null, Doctrine\Common\EventManager $evm = null ) : DocumentManager Factory method for a Document Manager.
createLuceneQuery ( string $designDocName, string $viewName ) : ODMLuceneQuery Create a CouchDB-Lucene Query.
createNativeQuery ( string $designDocName, string $viewName ) : Doctrine\CouchDB\View\Query Create a Native query for the view of the specified design document.
createQuery ( string $designDocName, string $viewName ) : ODMQuery Create a Query for the view in the specified design document.
detach ( $document )
find ( string $documentName, string $id ) : object Find the Document with the given id.
flush ( )
getClassMetadata ( string $class ) : ClassMetadata
getClassMetadataFactory ( ) : ClassMetadataFactory
getConfiguration ( ) : Configuration
getCouchDBClient ( ) : Doctrine\CouchDB\CouchDBClient
getDatabase ( )
getEventManager ( ) : Doctrine\Common\EventManager
getHttpClient ( )
getMetadataFactory ( ) : ClassMetadataFactory
getProxyFactory ( ) : ProxyFactory
getReference ( string $documentName, mixed $identifier ) : object Gets a reference to the entity identified by the given type and identifier without actually loading it, if the entity is not yet loaded.
getRepository ( string $documentName ) : DocumentRepository
getUnitOfWork ( ) : UnitOfWork
initializeObject ( object $obj ) Initialize an object that is a lazy load proxy, or do nothing.
merge ( $document )
persist ( $object )
refresh ( object $document ) Refresh the given document by querying the CouchDB to get the current state.
remove ( $object )

Описание методов

__construct() публичный Метод

public __construct ( Doctrine\CouchDB\CouchDBClient $couchClient, Configuration $config = null, Doctrine\Common\EventManager $evm = null )
$couchClient Doctrine\CouchDB\CouchDBClient
$config Configuration
$evm Doctrine\Common\EventManager

clear() публичный Метод

Clears the ObjectManager. All objects that are currently managed by this ObjectManager become detached.
public clear ( string $objectName = null )
$objectName string if given, only objects of this type will get detached

contains() публичный Метод

public contains ( object $document ) : boolean
$document object
Результат boolean

create() публичный статический Метод

Factory method for a Document Manager.
public static create ( array | Doctrine\CouchDB\CouchDBClient $couchParams, Configuration $config = null, Doctrine\Common\EventManager $evm = null ) : DocumentManager
$couchParams array | Doctrine\CouchDB\CouchDBClient
$config Configuration
$evm Doctrine\Common\EventManager
Результат DocumentManager

createLuceneQuery() публичный Метод

Create a CouchDB-Lucene Query.
public createLuceneQuery ( string $designDocName, string $viewName ) : ODMLuceneQuery
$designDocName string
$viewName string
Результат Doctrine\ODM\CouchDB\View\ODMLuceneQuery

createNativeQuery() публичный Метод

A native query will return an array of data from the &include_docs=true parameter.
public createNativeQuery ( string $designDocName, string $viewName ) : Doctrine\CouchDB\View\Query
$designDocName string
$viewName string
Результат Doctrine\CouchDB\View\Query

createQuery() публичный Метод

Create a Query for the view in the specified design document.
public createQuery ( string $designDocName, string $viewName ) : ODMQuery
$designDocName string
$viewName string
Результат Doctrine\ODM\CouchDB\View\ODMQuery

detach() публичный Метод

public detach ( $document )

find() публичный Метод

Will return null if the document wasn't found.
public find ( string $documentName, string $id ) : object
$documentName string
$id string
Результат object

flush() публичный Метод

public flush ( )

getClassMetadata() публичный Метод

public getClassMetadata ( string $class ) : ClassMetadata
$class string
Результат Doctrine\ODM\CouchDB\Mapping\ClassMetadata

getClassMetadataFactory() публичный Метод

public getClassMetadataFactory ( ) : ClassMetadataFactory
Результат Doctrine\ODM\CouchDB\Mapping\ClassMetadataFactory

getConfiguration() публичный Метод

public getConfiguration ( ) : Configuration
Результат Configuration

getCouchDBClient() публичный Метод

public getCouchDBClient ( ) : Doctrine\CouchDB\CouchDBClient
Результат Doctrine\CouchDB\CouchDBClient

getDatabase() публичный Метод

public getDatabase ( )

getEventManager() публичный Метод

public getEventManager ( ) : Doctrine\Common\EventManager
Результат Doctrine\Common\EventManager

getHttpClient() публичный Метод

public getHttpClient ( )

getMetadataFactory() публичный Метод

public getMetadataFactory ( ) : ClassMetadataFactory
Результат Doctrine\ODM\CouchDB\Mapping\ClassMetadataFactory

getProxyFactory() публичный Метод

public getProxyFactory ( ) : ProxyFactory
Результат Doctrine\ODM\CouchDB\Proxy\ProxyFactory

getReference() публичный Метод

Gets a reference to the entity identified by the given type and identifier without actually loading it, if the entity is not yet loaded.
public getReference ( string $documentName, mixed $identifier ) : object
$documentName string The name of the entity type.
$identifier mixed The entity identifier.
Результат object The entity reference.

getRepository() публичный Метод

public getRepository ( string $documentName ) : DocumentRepository
$documentName string
Результат DocumentRepository

getUnitOfWork() публичный Метод

public getUnitOfWork ( ) : UnitOfWork
Результат UnitOfWork

initializeObject() публичный Метод

Initialize an object that is a lazy load proxy, or do nothing.
public initializeObject ( object $obj )
$obj object

merge() публичный Метод

public merge ( $document )

persist() публичный Метод

public persist ( $object )

refresh() публичный Метод

Refresh the given document by querying the CouchDB to get the current state.
public refresh ( object $document )
$document object

remove() публичный Метод

public remove ( $object )