$notCreatedDefaultFolder['default_folder_id'
],
$notCreatedDefaultFolder['entity'
] );
} } private function createDefaultFolder(Connection
$connection, string
$defaultFolderId, string
$entity): void
{ $connection->
transactional(function DConnection
$connection) use ($defaultFolderId,
$entity): void
{ $configurationId = Uuid::
randomBytes();
$folderId = Uuid::
randomBytes();
$folderName =
$this->
getMediaFolderName($entity);
$private = 0;
if ($entity === 'document'
) { $private = 1;
} $connection->
executeStatement('
INSERT INTO `media_folder_configuration` (`id`, `thumbnail_quality`, `create_thumbnails`, `private`, created_at)
VALUES (:id, 80, 1, :private, :createdAt)
',
[ 'id' =>
$configurationId,
'createdAt'
=> (new \
DateTime())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
),
'private' =>
$private,
]);