beginTransaction() public method

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