Method |
Description |
|
__construct ( Doctrine\Search\SearchManager $sm ) |
Initializes a new UnitOfWork instance, bound to the given SearchManager. |
|
clear ( string $entityName = null ) |
Clears the UnitOfWork. |
|
commit ( null | object | array $entity = null ) |
Commits the UnitOfWork, executing all operations that have been postponed
up to this point. |
|
hydrateCollection ( array $classes, Traversable $resultSet ) |
Construct an entity collection |
|
hydrateEntity ( ClassMetadata $class, object $document ) |
Construct an entity object |
|
isInIdentityMap ( object $entity ) : boolean |
Checks whether an entity is registered in the identity map of this UnitOfWork. |
|
load ( ClassMetadata $class, mixed $value, array $options = [] ) |
Load and hydrate a document model |
|
loadCollection ( array $classes, unknown $query ) |
Load and hydrate a document collection |
|
persist ( object $entity ) |
Persists an entity as part of the current unit of work. |
|
remove ( object $entity ) |
Deletes an entity as part of the current unit of work. |
|