public static function notVersioned($entityName) { return new self("Cannot obtain optimistic lock on unversioned document " . $entityName, null); }