Modifies/populates the following properties:
{@link _originalEntityData}
If the entity is NEW or MANAGED but not yet fully persisted (only has an id)
then it was not fetched from the database and therefore we have no original
entity data yet. All of the current entity data is stored as the original entity data.
{@link _entityChangeSets}
The changes detected on all properties of the entity are stored there.
A change is a tuple array where the first entry is the old value and the second
entry is the new value of the property. Changesets are used by persisters
to INSERT/UPDATE the persistent entity state.
{@link _entityUpdates}
If the entity is already fully MANAGED (has been fetched from the database before)
and any changes to its properties are detected, then a reference to the entity is stored
there to mark it for an update.
{@link _collectionDeletions}
If a PersistentCollection has been de-referenced in a fully MANAGED entity,
then this collection is marked for deletion.
public computeChangeSet ( Doctrine\ORM\Mapping\ClassMetadata $class, object $entity ) | ||
$class | Doctrine\ORM\Mapping\ClassMetadata | The class descriptor of the entity. |
$entity | object | The entity for which to compute the changes. |