/** * Releases a lock on the given document. * * @param object $document * @throws \InvalidArgumentException if the $document param is not an object */ public function unlock($document) { if (!is_object($document)) { throw new \InvalidArgumentException(gettype($document)); } $this->unitOfWork->unlock($document); }