original_string: private function migrateEnrollments()
      {
          $this->output->info('### Migrating enrollments ###');
          foreach ($this->enrollments() as $enrollment) {
              if ($enrollment->person == null ) {
                  $this->output->error('Skipping enrolmment because no personal data');
                  continue;
              }
              $enrollment->showMigratingInfo($this->output,1);
              $newEnrollment = $this->migrateEnrollment($enrollment);
              if ($newEnrollment) $this->migrateEnrollmentDetails($enrollment, $newEnrollment);
          }
          $this->output->info('### END Migrating enrollments ###');
      }
code: private function migrateEnrollments()
      {
          $this->output->info('### Migrating enrollments ###');
          foreach ($this->enrollments() as $enrollment) {
              if ($enrollment->person == null ) {
                  $this->output->error('Skipping enrolmment because no personal data');
                  continue;
              }
              $enrollment->showMigratingInfo($this->output,1);
              $newEnrollment = $this->migrateEnrollment($enrollment);
              if ($newEnrollment) $this->migrateEnrollmentDetails($enrollment, $newEnrollment);
          }
          $this->output->info('### END Migrating enrollments ###');
      }
code_tokens: private function migrateEnrollments ( ) { $ this -> output -> info ( '### Migrating enrollments ###' ) ; foreach ( $ this -> enrollments ( ) as $ enrollment ) { if ( $ enrollment -> person == null ) { $ this -> output -> error ( 'Skipping enrolmment because no personal data' ) ; continue ; } $ enrollment -> showMigratingInfo ( $ this -> output , 1 ) ; $ newEnrollment = $ this -> migrateEnrollment ( $ enrollment ) ; if ( $ newEnrollment ) $ this -> migrateEnrollmentDetails ( $ enrollment , $ newEnrollment ) ; } $ this -> output -> info ( '### END Migrating enrollments ###' ) ; }
docstring: Migrate enrollment.
docstring_tokens: Migrate enrollment .