diff --git a/src/CoreBundle/Entity/User.php b/src/CoreBundle/Entity/User.php index bdf39e2137..e7a0da5165 100644 --- a/src/CoreBundle/Entity/User.php +++ b/src/CoreBundle/Entity/User.php @@ -508,6 +508,7 @@ class User implements UserInterface, EquatableInterface, ResourceInterface, Reso mappedBy: 'user', targetEntity: Templates::class, cascade: ['persist', 'remove'], + fetch: 'EXTRA_LAZY', orphanRemoval: true )] protected Collection $templates; diff --git a/src/CoreBundle/Migrations/Schema/V200/Version20240129225700.php b/src/CoreBundle/Migrations/Schema/V200/Version20201212114909.php similarity index 94% rename from src/CoreBundle/Migrations/Schema/V200/Version20240129225700.php rename to src/CoreBundle/Migrations/Schema/V200/Version20201212114909.php index 59619908d8..47b58bb3bf 100644 --- a/src/CoreBundle/Migrations/Schema/V200/Version20240129225700.php +++ b/src/CoreBundle/Migrations/Schema/V200/Version20201212114909.php @@ -7,7 +7,7 @@ namespace Chamilo\CoreBundle\Migrations\Schema\V200; use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo; use Doctrine\DBAL\Schema\Schema; -final class Version20240129225700 extends AbstractMigrationChamilo +final class Version20201212114909 extends AbstractMigrationChamilo { public function getDescription() : string {