PHP 클래스 Doctrine\ODM\CouchDB\DocumentManager

상속: implements Doctrine\Common\Persistence\ObjectManager
파일 보기 프로젝트 열기: doctrine/couchdb-odm 1 사용 예제들

공개 메소드들

메소드 설명
__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 )