Пример #1
0
 private function saveDates()
 {
     $electionId = Factory::pullPostInteger('electionId');
     $election = Factory::build($electionId, new Resource());
     $startDate = Factory::pullPostInteger('startDate');
     $endDate = Factory::pullPostInteger('endDate');
     $election->setStartDate($startDate, false);
     $election->setEndDate($endDate, false);
     Factory::saveResource($election);
 }