Beispiel #1
0
 public function load(ObjectManager $manager)
 {
     for ($i = 0; $i < 10; $i++) {
         $student = new Rating();
         $student->setMon(rand(1, 5));
         $student->setTue(rand(1, 5));
         $student->setWed(rand(1, 5));
         $student->setThu(rand(1, 5));
         $student->setFri(rand(1, 5));
         $student->setSat(rand(1, 5));
     }
     $manager->flush();
 }