Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed flush() call in checkin()/checkout()/restore()

  • Loading branch information...
commit f8aced3ad5e5ca52da022184d9b164d058ecbe99 1 parent d2056a3
@lsmith77 lsmith77 authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  lib/Doctrine/ODM/PHPCR/UnitOfWork.php
View
3  lib/Doctrine/ODM/PHPCR/UnitOfWork.php
@@ -999,7 +999,6 @@ protected function handlePostFlushEvents()
public function checkIn($document)
{
$path = $this->getDocumentId($document);
- $this->flush();
$session = $this->dm->getPhpcrSession();
$node = $session->getNode($path);
$node->addMixin("mix:versionable");
@@ -1015,7 +1014,6 @@ public function checkIn($document)
public function checkOut($document)
{
$path = $this->getDocumentId($document);
- $this->flush();
$session = $this->dm->getPhpcrSession();
$node = $session->getNode($path);
$node->addMixin("mix:versionable");
@@ -1031,7 +1029,6 @@ public function checkOut($document)
public function restore($version, $document, $removeExisting)
{
$path = $this->getDocumentId($document);
- $this->flush();
$session = $this->dm->getPhpcrSession();
$vm = $session->getWorkspace()->getVersionManager();
$vm->restore($removeExisting, $version, $path);
Please sign in to comment.
Something went wrong with that request. Please try again.