메소드 | 설명 | |
---|---|---|
__construct ( |
||
computeChangeSet ( |
||
contains ( object $document ) : boolean | ||
createDocument ( string $documentName, array $data, array &$hints = [] ) : object | Create a document given class, data and the doc-id and revision | |
detach ( object $document ) | Detaches a document from the persistence management. It's persistence will no longer be managed by Doctrine. | |
findMany ( array $ids, null | string $documentName = null, null | integer $limit = null, null | integer $offset = null ) : array | Find many documents by id. | |
flush ( ) : void | Flush Operation - Write all dirty entries to the CouchDB. | |
getDocumentIdentifier ( $document ) | ||
getDocumentRevision ( object $document ) : string | Get the CouchDB revision of the document that was current upon retrieval. | |
getDocumentState ( object $document ) : integer | Get the state of a document. | |
getIdentityMap ( ) : array | Get all entries currently in the identity map | |
getOriginalData ( object $document ) : array | ||
isInIdentityMap ( object $document ) : boolean | Checks whether a document is registered in the identity map of this UnitOfWork. | |
merge ( $document ) | ||
persistNew ( |
Persist new document, marking it managed and generating the id. | |
refresh ( $document ) | ||
registerManaged ( $document, $identifier, $revision ) | ||
removeFromIdentityMap ( object $document ) : boolean | INTERNAL: Removes an document from the identity map. This effectively detaches the document from the persistence management of Doctrine. | |
scheduleInsert ( object $document ) | Schedule insertion of this document and cascade if neccessary. | |
scheduleRemove ( $document ) | ||
tryGetById ( mixed $id ) : mixed | Tries to find an document with the given identifier in the identity map of this UnitOfWork. |
메소드 | 설명 | |
---|---|---|
assertValidDocumentType ( $documentName, $document, $type ) | ||
cascadeDetach ( object $document, array &$visited ) | Cascades a detach operation to associated documents. | |
cascadeMerge ( object $document, object $managedCopy, array &$visited ) | Cascades a merge operation to associated entities. | |
cascadeRefresh ( $document, &$visited ) | ||
cascadeRemove ( $document, &$visited ) | ||
cascadeScheduleInsert ( |
||
computeAssociationChanges ( array $assoc, mixed $value ) : InvalidArgumentException | Computes the changes of an association. | |
createDocumentAttachments ( string $documentId, array $data ) : array | ||
detectChangedDocuments ( ) | ||
doDetach ( object $document, array &$visited ) | Executes a detach operation on the given entity. | |
doMerge ( $document, array &$visited, $prevManagedCopy = null, $assoc = null ) | ||
doRefresh ( $document, &$visited ) | ||
doRemove ( $document, &$visited ) | ||
doScheduleInsert ( $document, &$visited ) | ||
getIdGenerator ( $type ) | ||
objToStr ( $obj ) |
public computeChangeSet ( |
||
$class | ||
$document | object | |
리턴 | void |
public getDocumentRevision ( object $document ) : string | ||
$document | object | |
리턴 | string |
public getDocumentState ( object $document ) : integer | ||
$document | object | |
리턴 | integer |
public getIdentityMap ( ) : array | ||
리턴 | array |
public getOriginalData ( object $document ) : array | ||
$document | object | |
리턴 | array |
public isInIdentityMap ( object $document ) : boolean | ||
$document | object | |
리턴 | boolean |
public persistNew ( |
||
$class | ||
$document | object | |
리턴 | void |
public removeFromIdentityMap ( object $document ) : boolean | ||
$document | object | |
리턴 | boolean |
public scheduleInsert ( object $document ) | ||
$document | object |
public tryGetById ( mixed $id ) : mixed | ||
$id | mixed | The document identifier to look for. |
리턴 | mixed | Returns the document with the specified identifier if it exists in this UnitOfWork, FALSE otherwise. |