Метод |
Описание |
|
__construct ( ) |
Constructs a new Session |
|
destroy ( ) : void |
Destroy the state of the persistence session and reset
all internal data. |
|
getCleanStateOfProperty ( object $object, string $propertyName ) : mixed |
Returns the previous (last persisted) state of the property. |
|
getIdentifierByObject ( object $object ) : string |
Returns the identifier for the given object either from
the session, if the object was registered, or from the object
itself using a special uuid property or the internal
properties set by AOP. |
|
getObjectByIdentifier ( string $identifier ) : object |
Returns the object for the given identifier |
|
getReconstitutedEntities ( ) : SplObjectStorage |
Returns all objects which have been registered as reconstituted |
|
hasIdentifier ( string $identifier ) : boolean |
Checks whether the given identifier is known to the identity map |
|
hasObject ( object $object ) : boolean |
Checks whether the given object is known to the identity map |
|
injectReflectionService ( ReflectionService $reflectionService ) : void |
Injects a Reflection Service instance |
|
isDirty ( object $object, string $propertyName ) : boolean |
Checks whether the given property was changed in the object since it was
reconstituted. Returns TRUE for unknown objects in all cases! |
|
isReconstitutedEntity ( object $entity ) : boolean |
Tells whether the given object is a reconstituted entity. |
|
registerObject ( object $object, string $identifier ) |
Register an identifier for an object |
|
registerReconstitutedEntity ( object $entity, array $entityData ) : void |
Registers data for a reconstituted object. |
|
replaceReconstitutedEntity ( object $oldEntity, object $newEntity ) : void |
Replace a reconstituted object, leaves the clean data unchanged. |
|
unregisterObject ( string $object ) : void |
Unregister an object |
|
unregisterReconstitutedEntity ( object $entity ) : void |
Unregisters data for a reconstituted object |
|