Obtains the transaction used for modifying the entity.
if the entity is not in the modification phase