public function setup()
 {
     $this->setWidgets(array('id' => new sfWidgetFormInputHidden(), 'name' => new sfWidgetFormInputText(array(), array('style' => 'width:300px')), 'order' => new sfWidgetFormInputText(array(), array('style' => 'width:300px')), 'blog_id' => new sfWidgetFormInputHidden(), 'father_id' => new sfWidgetFormChoice(array('choices' => AppBlogsMenuPeer::getBlogMenusArray($this->getOption('APP_BLOG'), $this->getOption('IDS')))), 'page_id' => new sfWidgetFormChoice(array('choices' => AppBlogsPagesPeer::getBlogPagesArray($this->getOption('APP_BLOG'), $this->getOption('IDS'))))));
     $this->setValidators(array('id' => new sfValidatorPropelChoice(array('model' => 'AppBlogsMenu', 'column' => 'id', 'required' => false)), 'name' => new sfValidatorString(array('max_length' => 50)), 'page_id' => new sfValidatorPropelChoice(array('model' => 'AppBlogsPages', 'column' => 'id', 'required' => false)), 'order' => new sfValidatorInteger(), 'blog_id' => new sfValidatorPropelChoice(array('model' => 'AppBlogsBlogs', 'column' => 'id')), 'father_id' => new sfValidatorInteger()));
     $this->widgetSchema->setNameFormat('app_blogs_menu[%s]');
     $this->widgetSchema->setLabels(array('name' => 'Nom: ', 'page_id' => 'Pàgina relacionada: ', 'order' => 'Ordre: ', 'father_id' => 'Menú pare: '));
     $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
 }