Method |
Description |
|
__construct ( XmlEntityManager $xem ) |
Initializes a new UnitOfWork instance, bound to the given EntityManager. |
|
addToIdentityMap ( object $xmlEntity ) : boolean |
INTERNAL:
Registers an document in the identity map. |
|
clear ( ) |
Clears the UnitOfWork. |
|
commit ( array $options = [] ) |
|
|
detach ( object $xmlEntity ) |
Detaches an xml-entity from the persistence management. It's persistence will
no longer be managed by Doctrine. |
|
getXmlEntityPersister ( string $entityName ) : RootXmlEntityPersister |
Gets the EntityPersister for an Entity. |
|
getXmlEntityState ( object $xmlEntity, integer $assume = null ) : integer |
Gets the state of an xml entity within the current unit of work. |
|
isInIdentityMap ( object $entity ) : boolean |
Checks whether an entity is registered in the identity map of this UnitOfWork. |
|
isScheduledForInsert ( object $entity ) : boolean |
Checks whether an entity is scheduled for insertion. |
|
merge ( object $xmlEntity ) : object |
Merges the state of the given detached xml-entity into this UnitOfWork. |
|
persist ( object $xmlEntity ) |
Persists an xml entity as part of the current unit of work. |
|
propertyChanged ( $entity, string $propertyName, mixed $oldValue, mixed $newValue ) |
Notifies the listener of a property change. |
|
refresh ( $xmlEntity ) |
|
|
remove ( $xmlEntity ) |
|
|
removeFromIdentityMap ( object $entity ) : boolean |
INTERNAL:
Removes an entity from the identity map. This effectively detaches the
entity from the persistence management of Doctrine. |
|
scheduleForDelete ( object $xmlEntity ) |
INTERNAL:
Schedules an entity for deletion. |
|
scheduleForDirtyCheck ( object $xmlEntity ) |
Schedules a xml entity for dirty-checking at commit-time. |
|
scheduleForInsert ( object $xmlEntity ) |
Schedules an document for insertion into the database. |
|
tryGetById ( string $id, string $rootClassName ) : mixed |
INTERNAL:
Tries to get an document by its identifier hash. If no document is found for
the given hash, FALSE is returned. |
|