unlock() public method

Releases a lock on the given document.
public unlock ( object $document )
$document object
Ejemplo n.º 1
0
 /**
  * Releases a lock on the given document.
  *
  * @param object $document
  */
 public function unlock($document)
 {
     if (!is_object($document)) {
         throw new \InvalidArgumentException(gettype($document));
     }
     $this->unitOfWork->unlock($document);
 }
Ejemplo n.º 2
0
 /**
  * Releases a lock on the given document.
  *
  * @param object $document
  */
 public function unlock($document)
 {
     $this->unitOfWork->unlock($document);
 }