addSettingCurrent( 'allow_coach_feedback_exercises', null, 'radio', 'Session', 'false', 'AllowCoachFeedbackExercisesTitle', 'AllowCoachFeedbackExercisesComment', null, null, 1, true, false, [ ['value' => 'true', 'text' => 'Yes'], ['value' => 'false', 'text' => 'No'] ] ); } /** * @param Schema $schema */ public function down(Schema $schema) { $entityManage = $this->getEntityManager(); $deleteOptions = $entityManage->createQueryBuilder(); $deleteOptions->delete('ChamiloCoreBundle:SettingsOptions', 'o') ->andWhere( $deleteOptions->expr()->in( 'o.variable', [ 'allow_coach_feedback_exercises' ] ) ); $deleteOptions->getQuery()->execute(); $deleteSettings = $entityManage->createQueryBuilder(); $deleteSettings->delete('ChamiloCoreBundle:SettingsCurrent', 's') ->andWhere( $deleteSettings->expr()->in( 's.variable', [ 'allow_coach_feedback_exercises' ] ) ); $deleteSettings->getQuery()->execute(); } }