public function setup()
 {
     parent::setup();
     $this->validatorSchema->setOption('allow_extra_fields', true);
     unset($this['site_id'], $this['created_at'], $this['updated_at'], $this['last_updated_by_id'], $this['slots_list'], $this['links_list'], $this['assets_list']);
     $q = Doctrine_Query::create()->from('sfSympalMenuItem m')->orderBy('m.root_id, m.lft ASC');
     if (sfSympalConfig::isI18nEnabled('sfSympalMenuItem')) {
         $q->leftJoin('m.Translation mt');
     }
     if (!$this->object->content_type_id) {
         $this->object->Type = Doctrine_Core::getTable('sfSympalContentType')->findOneBySlug('page');
     } else {
         $this->object->Type;
     }
     $this->_embedTypeForm();
 }
 public function setup()
 {
     parent::setup();
     $this->validatorSchema->setOption('allow_extra_fields', true);
     unset($this['site_id'], $this['created_at'], $this['updated_at'], $this['last_updated_by_id'], $this['slots_list'], $this['links_list'], $this['assets_list'], $this['comments_list']);
     $field = sfApplicationConfiguration::getActive()->getPluginConfiguration('sfThemePlugin')->getThemeToolkit()->getThemeWidgetAndValidator();
     $this->widgetSchema['theme'] = $field['widget'];
     $this->validatorSchema['theme'] = $field['validator'];
     // Sets up the template widget
     sfSympalFormToolkit::changeTemplateWidget($this);
     // Sets up the module widget
     sfSympalFormToolkit::changeModuleWidget($this);
     if (!$this->object->content_type_id) {
         $this->object->Type = Doctrine_Core::getTable('sfSympalContentType')->findOneBySlug('page');
     } else {
         $this->object->Type;
     }
     $this->configureMenuSection();
     $this->_embedTypeForm();
 }