chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

Add an exeption or a test on the migration error User Notice: Undefined property: Proxies\__CG__\Chamilo\CourseBundle\Entity\CQuiz::$attempts

Open NicoDucou opened this issue 10 months ago • 0 comments

In Chamilo master on the 2024/04/10 when doing a migration we get an error that block the migration. Just by launching the migration again it works and it is getting through. The error is :

Version20231012185600 checking quiz 3038 as resource node 
[error] Migration Chamilo\CoreBundle\Migrations\Schema\V200\Version20231012185600 failed during Execution. Error: "User Notice: Undefined property: Proxies\__CG__\Chamilo\CourseBundle\Entity\CQuiz::$attempts"

In __CG__ChamiloCourseBundleEntityCQuiz.php line 71:
                                                                                                
  User Notice: Undefined property: Proxies\__CG__\Chamilo\CourseBundle\Entity\CQuiz::$attempts  

There should be a exception or a test on the User Notice: Undefined property: Proxies_CG_\Chamilo\CourseBundle\Entity\CQuiz::$attempts to avoid blocking the migration.

NicoDucou avatar Apr 10 '24 14:04 NicoDucou