Exemplo n.º 1
0
 public function run()
 {
     Eloquent::unguard();
     /**
      * Clearing table
      */
     DB::table('schedule_entries')->delete();
     /**
      * Creating event schedule entries
      */
     ScheduleEntry::create(array('schdl_id' => '1', 'jbtyp_id' => '1', 'prsn_id' => '1'));
     ScheduleEntry::create(array('schdl_id' => '1', 'jbtyp_id' => '2', 'prsn_id' => '2'));
     ScheduleEntry::create(array('schdl_id' => '1', 'jbtyp_id' => '3'));
     ScheduleEntry::create(array('schdl_id' => '1', 'jbtyp_id' => '4', 'entry_user_comment' => 'Thou didst not reckon with the might of Thor, knave!', 'prsn_id' => '4'));
     ScheduleEntry::create(array('schdl_id' => '1', 'jbtyp_id' => '5', 'entry_user_comment' => 'komme 10 Min später', 'prsn_id' => '3'));
     ScheduleEntry::create(array('schdl_id' => '1', 'jbtyp_id' => '1'));
     /**
      * Creating task schedule
      */
     ScheduleEntry::create(array('schdl_id' => '2', 'jbtyp_id' => '6', 'prsn_id' => '3'));
     ScheduleEntry::create(array('schdl_id' => '2', 'jbtyp_id' => '7'));
     /**
      * reporting result to console
      */
     $this->command->info('Added schedule entries to example event and task on 01.04.2015.');
 }