Merge pull request #5118 from christianbeeznest/fix-migration-2

Internal: Migration: Add resource link to personal files
pull/5119/head
christianbeeznest 10 months ago committed by GitHub
commit 24081381b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      src/CoreBundle/Migrations/Schema/V200/Version20230720143000.php

@ -106,6 +106,7 @@ final class Version20230720143000 extends AbstractMigrationChamilo
$mimeType = mime_content_type($file);
$uploadedFile = new UploadedFile($file, $title, $mimeType, null, true);
$personalFile->setUploadFile($uploadedFile);
$personalFile->addUserLink($userEntity);
// Save the object to the database
$em->persist($personalFile);

Loading…
Cancel
Save