/**
  * 出店予約情報の登録
  *
  * @access private
  * @param
  * @return object
  * @author kobayashi
  * @author ida
  */
 private function registerWaitingEntry()
 {
     $fleamarket_id = \Input::post('fleamarket_id');
     $fleamarket_entry_style_id = \Input::post('fleamarket_entry_style_id');
     $fleamarket_entry_style = \Model_Fleamarket_Entry_Style::find('first', array('where' => array('fleamarket_entry_style_id' => $fleamarket_entry_style_id, 'fleamarket_id' => $fleamarket_id)));
     if (!$fleamarket_entry_style) {
         return false;
     }
     $condition = array('user_id' => $this->login_user->user_id, 'fleamarket_id' => $fleamarket_id, 'fleamarket_entry_style_id' => $fleamarket_entry_style_id);
     $entry = \Model_Entry::findBy($condition);
     if ($entry) {
         $entry->set(array('entry_status' => Model_Entry::ENTRY_STATUS_WAITING, 'updated_user' => $this->login_user->user_id));
     } else {
         $entry = \Model_Entry::forge($condition);
         $entry->set(array('reservation_number' => '', 'entry_status' => Model_Entry::ENTRY_STATUS_WAITING, 'item_category' => '', 'item_genres' => '', 'reserved_booth' => 0, 'link_from' => '', 'remarks' => '', 'created_user' => $this->login_user->user_id));
     }
     $entry->save();
     return $entry;
 }