unlock() public method

Releases a lock on the given document.
public unlock ( object $document )
$document object
Esempio 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);
 }
Esempio n. 2
0
 /**
  * Releases a lock on the given document.
  *
  * @param object $document
  */
 public function unlock($document)
 {
     $this->unitOfWork->unlock($document);
 }