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