/**
  * Roll back resource transaction
  *
  * @return $this
  * @api
  */
 public function rollBack()
 {
     $this->getConnection()->rollBack();
     CallbackPool::clear(spl_object_hash($this->getConnection()));
     return $this;
 }
 /**
  * @param string $entityType
  * @throws \Exception
  * @return void
  */
 public function clear($entityType)
 {
     $metadata = $this->metadataPool->getMetadata($entityType);
     CallbackPool::clear(spl_object_hash($metadata->getEntityConnection()));
 }