protected function setInsertColumns(QueryBuilder $queryBuilder, VersionInfo $versionInfo, Field $field)
    {
        $queryBuilder
            ->setValue('contentobject_attribute_id', ':fieldId')
            ->setValue('filename', ':filename')
            ->setValue('mime_type', ':mimeType')
            ->setValue('original_filename', ':originalFilename')
            ->setValue('version', ':versionNo')
            ->setParameter(':fieldId', $field->id, PDO::PARAM_INT)
            ->setParameter(':filename', $this->removeMimeFromPath($field->value->externalData['id']))
            ->setParameter(':mimeType', $field->value->externalData['mimeType'])
            ->setParameter(':originalFilename', $field->value->externalData['fileName'])
            ->setParameter(':versionNo', $versionInfo->versionNo, PDO::PARAM_INT)
        ;
    }
protected function setInsertColumns(QueryBuilder $queryBuilder, VersionInfo $versionInfo, Field $field)
    {
        $queryBuilder
            ->setValue('contentobject_attribute_id', ':fieldId')
            ->setValue('filename', ':filename')
            ->setValue('mime_type', ':mimeType')
            ->setValue('original_filename', ':originalFilename')
            ->setValue('version', ':versionNo')
            ->setParameter(':fieldId', $field->id, PDO::PARAM_INT)
            ->setParameter(':filename', $this->removeMimeFromPath($field->value->externalData['id']))
            ->setParameter(':mimeType', $field->value->externalData['mimeType'])
            ->setParameter(':originalFilename', $field->value->externalData['fileName'])
            ->setParameter(':versionNo', $versionInfo->versionNo, PDO::PARAM_INT)
        ;
    }
protected function setInsertColumns ( QueryBuilder $ queryBuilder , VersionInfo $ versionInfo , Field $ field ) { $ queryBuilder -> setValue ( 'contentobject_attribute_id' , ':fieldId' ) -> setValue ( 'filename' , ':filename' ) -> setValue ( 'mime_type' , ':mimeType' ) -> setValue ( 'original_filename' , ':originalFilename' ) -> setValue ( 'version' , ':versionNo' ) -> setParameter ( ':fieldId' , $ field -> id , PDO :: PARAM_INT ) -> setParameter ( ':filename' , $ this -> removeMimeFromPath ( $ field -> value -> externalData [ 'id' ] ) ) -> setParameter ( ':mimeType' , $ field -> value -> externalData [ 'mimeType' ] ) -> setParameter ( ':originalFilename' , $ field -> value -> externalData [ 'fileName' ] ) -> setParameter ( ':versionNo' , $ versionInfo -> versionNo , PDO :: PARAM_INT ) ; }
Set the required insert columns to insert query builder.

This method is intended to be overwritten by derived classes in order to
add additional columns to be set in the database. Please do not forget
to call the parent when overwriting this method.

@param \Doctrine\DBAL\Query\QueryBuilder $queryBuilder
@param \eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo
@param \eZ\Publish\SPI\Persistence\Content\Field $field
Set the required insert columns to insert query builder .