public function unlock($document) { if (!is_object($document)) { throw new \InvalidArgumentException(gettype($document)); } $this->unitOfWork->unlock($document); }