Skip to content

Commit 27a09ec

Browse files
committed
Internal: Migration: Fix strange error on none existing user - refs BT#20864
1 parent 564c563 commit 27a09ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CoreBundle/Migrations/Schema/V200/Version20240506165900.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace Chamilo\CoreBundle\Migrations\Schema\V200;
88

9+
use Chamilo\CoreBundle\Entity\User;
910
use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
1011
use Chamilo\CoreBundle\Repository\Node\PersonalFileRepository;
1112
use Chamilo\CoreBundle\Repository\Node\UserRepository;
@@ -22,6 +23,8 @@ public function getDescription(): string
2223

2324
public function up(Schema $schema): void
2425
{
26+
$this->entityManager->clear();
27+
2528
$updateConfigurations = [
2629
['table' => 'c_tool_intro', 'field' => 'intro_text'],
2730
['table' => 'c_course_description', 'field' => 'content'],

0 commit comments

Comments
 (0)