public function addDocumentType($postValues)
    {
        $documentTypeObject = DocumentTypeFactory::createDocumentTypeFromPostValues($postValues);

        $documentTypes = $this->repository->documentTypes;
        $documentTypes[] = $documentTypeObject;
        $this->repository->documentTypes = $documentTypes;

        $this->save();
    }
public function addDocumentType($postValues)
    {
        $documentTypeObject = DocumentTypeFactory::createDocumentTypeFromPostValues($postValues);

        $documentTypes = $this->repository->documentTypes;
        $documentTypes[] = $documentTypeObject;
        $this->repository->documentTypes = $documentTypes;

        $this->save();
    }
public function addDocumentType ( $ postValues ) { $ documentTypeObject = DocumentTypeFactory :: createDocumentTypeFromPostValues ( $ postValues ) ; $ documentTypes = $ this -> repository -> documentTypes ; $ documentTypes [ ] = $ documentTypeObject ; $ this -> repository -> documentTypes = $ documentTypes ; $ this -> save ( ) ; }
Add a document type from post values

@param $postValues

@throws \Exception
Add a document type from post values