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 ###');
    }
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 ###');
    }
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 ###' ) ; }
Migrate enrollment.
Migrate enrollment .