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