public function configure()
  {
    
    parent::configure();

    unset(
      $this['published_at'],
      $this['published_by'],
      $this ['track_id'],
      $this ['slug'],
      $this['dance_id'],
      $this['manager_id'],
      $this ['workshop_id'],
      $this['run'] # Doctrine Behaviour Sortable 
      // , $this ['category_id']
      // , $this ['type_id']
      // , $this ['name']
    );


    $this->widgetSchema['weekday']
      ->setOption('renderer_class', 'sfWidgetFormSelectWeekday')
      ->setOption('label', 'Wochentag')
    ;

  }
  public function configure()
  {
    
    parent::configure();

    unset(
      $this['published_at'],
      $this['published_by'],
      $this ['track_id'],
      $this ['slug'],
      $this['manager_id'],
      $this ['workshop_id'],
      $this['run'] # Doctrine Behaviour Sortable 
      // , $this ['category_id']
      // , $this ['type_id']
      // , $this ['name']
    );


    $this->widgetSchema['weekday']
      ->setOption('renderer_class', 'sfWidgetFormSelectWeekday')
      ->setOption('label', 'Wochentag')
    ;

    $this->setValidator('dance_id',
          new sfValidatorDoctrineChoice(array('model' => $this->getRelatedModelName('Dance'), 'required' => true))
    );
    $this->setValidator('start_date', 
      new sfValidatorDate(array('required' => true))
    );



/*
    $this->setValidators(array(
      'dance_id'             => new sfValidatorDoctrineChoice(array('model' => $this->getRelatedModelName('Dance'), 'required' => true))
      // ,'weekday'              => new sfValidatorChoice(array('choices' => array(0 => 1, 1 => 2, 2 => 3, 3 => 4, 4 => 5, 5 => 6, 6 => 7), 'required' => true)),
      //,'time'                 => new sfValidatorTime(array('required' => false)),
      //,'duration'             => new sfValidatorInteger(array('required' => true)),
      //'num_lessons'          => new sfValidatorInteger(array('required' => false)), 
      //,'start_date'           => new sfValidatorDate(array('required' => true))
      //,'end_date'             => new sfValidatorDate(array('required' => false)) 
    ));
*/

  }