public function saveJosFutureStudy(JosFutureStudy $jos_future_study)
 {
     $data = array('user_id' => $jos_future_study->getUserId(), 'year_id' => $jos_future_study->getYearId(), 'subject_name' => $jos_future_study->getSubjectName(), 'address' => $jos_future_study->getAddress(), 'time_from' => $jos_future_study->getTimeFrom(), 'time_to' => $jos_future_study->getTimeTo(), 'note' => $jos_future_study->getNote());
     $value_id = (int) $jos_future_study->getValueId();
     if ($value_id == 0) {
         $this->tableGateway->insert($data);
     } else {
         if ($this->getFutureStudyByArrayConditionAndArrayColumns(array('value_id' => $value_id), array('user_id'))) {
             $this->tableGateway->update($data, array('value_id' => $value_id));
         } else {
             return false;
         }
     }
     return true;
 }