Doctrine/ScheduleManager.php
public function save(ScheduleInterface $schedule, $andFlush = true)
    {
        $this->objectManager->persist($schedule);
        if ($andFlush)
        {
            $this->objectManager->flush();
        }
    }
public function save(ScheduleInterface $schedule, $andFlush = true)
    {
        $this->objectManager->persist($schedule);
        if ($andFlush)
        {
            $this->objectManager->flush();
        }
    }
Updates a schedule

@param ScheduleInterface $schedule
@param Boolean           $andFlush Whether to flush the changes (default true)