beginTransaction() public method

Saves the current item state in case a rollback occurs.
See also: Item::rollbackTransaction
public beginTransaction ( )
Example #1
0
 /**
  * {@inheritDoc}
  *
  * Additionally, notifies all properties of this node. Child nodes are not
  * notified, it is the job of the ObjectManager to know which nodes are
  * cached and notify them.
  */
 public function beginTransaction()
 {
     parent::beginTransaction();
     // Notify the children properties
     foreach ($this->properties as $prop) {
         $prop->beginTransaction();
     }
 }