<?php

/**
 * DestinosComisionados form base class.
 *
 * @package    form
 * @subpackage destinos_comisionados
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 15484 2009-02-13 13:13:51Z fabien $
 */
class BaseDestinosComisionadosForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'nitocc'        => new sfWidgetFormInputHidden(),
      'id_comision'   => new sfWidgetFormInputHidden(),
      'codmun'        => new sfWidgetFormInputHidden(),
      'orden'         => new sfWidgetFormInput(),
      'estado'        => new sfWidgetFormInput(),
      'vigencia'      => new sfWidgetFormInputHidden(),
      'id_transporte' => new sfWidgetFormPropelSelect(array('model' => 'Transportes', 'add_empty' => true)),
    ));

    $this->setValidators(array(
      'nitocc'        => new sfValidatorPropelChoice(array('model' => 'Terceros', 'column' => 'nitocc', 'required' => false)),
      'id_comision'   => new sfValidatorPropelChoice(array('model' => 'Comisiones', 'column' => 'vigencia', 'required' => false)),
      'codmun'        => new sfValidatorPropelChoice(array('model' => 'DestinosComisionados', 'column' => 'codmun', 'required' => false)),
      'orden'         => new sfValidatorNumber(array('required' => false)),
      'estado'        => new sfValidatorNumber(array('required' => false)),
      'vigencia'      => new sfValidatorPropelChoice(array('model' => 'Comisiones', 'column' => 'vigencia', 'required' => false)),
      'id_transporte' => new sfValidatorPropelChoice(array('model' => 'Transportes', 'column' => 'id', 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('destinos_comisionados[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'DestinosComisionados';
  }


}
