묻고답하기

모듈을 공부 중인데요..

 

원래 그런건지... getNextSequence()으로 문서번호를 부여하는데...

 

이상하게 숫자가 2씩 증가해서 부여 되네요..

 

원래 그런건가요?

 

예를 들어 글 하나를 등록하면 글번호가 10이라고 한다면

 

그 다음에 등록하는 글 번호는 12로 부여 받아요..

 

따로 설정한 것은 없고...

 

 

첨부파일을 먼저 올리게 처리해놔서..

 

미리 document_srl을 getNextSequence() 로 부여 한 후에

 

대충

 

$upload_target_srl = getNextSequence();

$oFileController->insertFile($file, $module_info->module_srl, $upload_target_srl, 0);

 

  $args = new stdClass();
  $args->module_srl = $this->module_srl;
  $args->document_srl = $upload_target_srl;
  $args->status = 'TEMP';
  $args->comment_status = 'ALLOW';
  $args->title = $obj->title;
  $args->content = Context::get('content');

 

$oDocumentController->insertDocument($args);

 

이런식으로 넘겨주고 있거든요..

 

원래 그런건지... 이유를 모르겠네요... 따로 처리해줘야 할 부분이 있는 건가요?