diff --git a/src/CoreBundle/Migrations/Schema/V200/Version20250923205900.php b/src/CoreBundle/Migrations/Schema/V200/Version20250923205900.php index 55f70e03703..2449d0cae4d 100644 --- a/src/CoreBundle/Migrations/Schema/V200/Version20250923205900.php +++ b/src/CoreBundle/Migrations/Schema/V200/Version20250923205900.php @@ -79,7 +79,7 @@ public function up(Schema $schema): void $toolRef = $this->entityManager->getReference(Tool::class, $toolId); $courseRef = $this->entityManager->getReference(Course::class, $courseId); - $ctool = new CTool() + $ctool = (new CTool()) ->setTool($toolRef) ->setTitle($targetTitle) ->setVisibility($visible)