/**
* Sets the required insert columns to $selectQuery.
*
* 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 \eZ\Publish\Core\Persistence\Database\InsertQuery $insertQuery
* @param VersionInfo $versionInfo
* @param Field $field
*
* @return void
*/
protected function setInsertColumns(InsertQuery $insertQuery, VersionInfo $versionInfo, Field $field)
{
$connection = $this->getConnection();
$insertQuery->set($connection->quoteColumn('contentobject_attribute_id'), $insertQuery->bindValue($field->id, null, \PDO::PARAM_INT))->set($connection->quoteColumn('filename'), $insertQuery->bindValue($this->removeMimeFromPath($field->value->externalData['id'])))->set($connection->quoteColumn('mime_type'), $insertQuery->bindValue($field->value->externalData['mimeType']))->set($connection->quoteColumn('original_filename'), $insertQuery->bindValue($field->value->externalData['fileName']))->set($connection->quoteColumn('version'), $insertQuery->bindValue($versionInfo->versionNo, null, \PDO::PARAM_INT));
}