public function before()
 {
     parent::before();
     if (Input::param('fleamarket_id')) {
         $this->fleamarket = \Model_Fleamarket::find(Input::param('fleamarket_id'));
     }
     if ($this->fleamarket) {
         $fleamarket_abouts = $this->fleamarket->fleamarket_abouts;
         foreach ($fleamarket_abouts as $fleamarket_about) {
             $this->fleamarket_abouts[$fleamarket_about->about_id] = $fleamarket_about;
         }
         $fleamarket_entry_styles = $this->fleamarket->fleamarket_entry_styles;
         foreach ($fleamarket_entry_styles as $fleamarket_entry_style) {
             $this->fleamarket_entry_styles[$fleamarket_entry_style->entry_style_id] = $fleamarket_entry_style;
         }
     }
 }
 public function before()
 {
     parent::before();
     $this->fieldset = $this->getFieldset();
     if (!$this->fieldset) {
         throw new \SystemException(\Model_Error::ER00501);
     }
     $input = $this->fieldset->input();
     $fleamarket = \Model_Fleamarket::find($input['fleamarket_id']);
     $user = \Model_User::find($input['user_id']);
     if (!$fleamarket || !$user) {
         throw new \SystemException(\Model_Error::ER00501);
     }
     $this->fleamarket = $fleamarket;
     $this->user = $user;
     if ($input['fleamarket_entry_style_id']) {
         $this->fleamarket_entry_style = \Model_Fleamarket_Entry_Style::find('first', array('where' => array('fleamarket_entry_style_id' => $input['fleamarket_entry_style_id'], 'fleamarket_id' => $input['fleamarket_id'])));
     }
 }
 public function before()
 {
     parent::before();
 }