Method |
Description |
|
__construct ( DocumentManager $dm, UnitOfWork $uow, $cmd ) |
Initializes a new PersistenceBuilder instance. |
|
prepareEmbeddedDocValue ( array $embeddedMapping, Document $embeddedDocument ) : array |
Prepares array of values to be stored in mongo to represent embedded object. |
|
prepareInsertData ( mixed $document ) : array |
Prepares insert data for document |
|
prepareReferencedDocValue ( array $referenceMapping, Document $document ) : array | null |
Returns the reference representation to be stored in mongodb or null if not applicable. |
|
prepareUpdateData ( mixed $document ) : array |
Prepares update array for document, using atomic operators |
|
prepareValue ( array $mapping, mixed $value ) |
Prepare a value based on the given mapping array. |
|