beginTransaction() public méthode

Begin new transaction associated with current session.
public beginTransaction ( )
 /**
  * {@inheritDoc}
  *
  * @api
  */
 public function begin()
 {
     if ($this->inTransaction) {
         throw new UnsupportedRepositoryOperationException("Nested transactions are not supported.");
     }
     $this->objectManager->beginTransaction();
     $this->inTransaction = true;
 }