<?php

/**
 * TiposComision form base class.
 *
 * @package    form
 * @subpackage tipos_comision
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 15484 2009-02-13 13:13:51Z fabien $
 */
class BaseTiposComisionForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'tipcomi'     => new sfWidgetFormInputHidden(),
      'descomi'     => new sfWidgetFormInput(),
      'observ'      => new sfWidgetFormInput(),
      'dcomi'       => new sfWidgetFormInput(),
      'viaticos'    => new sfWidgetFormInput(),
      'manutencion' => new sfWidgetFormInput(),
      'taxis'       => new sfWidgetFormInput(),
      'objetos'     => new sfWidgetFormInput(),
      'destinos'    => new sfWidgetFormInput(),
      'fecha_ini'   => new sfWidgetFormInput(),
      'fecha_ant'   => new sfWidgetFormInput(),
      'cruce'       => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'tipcomi'     => new sfValidatorPropelChoice(array('model' => 'TiposComision', 'column' => 'tipcomi', 'required' => false)),
      'descomi'     => new sfValidatorString(array('max_length' => 100, 'required' => false)),
      'observ'      => new sfValidatorString(array('max_length' => 100, 'required' => false)),
      'dcomi'       => new sfValidatorString(array('max_length' => 20, 'required' => false)),
      'viaticos'    => new sfValidatorString(array('max_length' => 1, 'required' => false)),
      'manutencion' => new sfValidatorString(array('max_length' => 1, 'required' => false)),
      'taxis'       => new sfValidatorString(array('max_length' => 1, 'required' => false)),
      'objetos'     => new sfValidatorString(array('max_length' => 1, 'required' => false)),
      'destinos'    => new sfValidatorString(array('max_length' => 1, 'required' => false)),
      'fecha_ini'   => new sfValidatorString(array('max_length' => 1, 'required' => false)),
      'fecha_ant'   => new sfValidatorString(array('max_length' => 1, 'required' => false)),
      'cruce'       => new sfValidatorString(array('max_length' => 1, 'required' => false)),
    ));

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

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

    parent::setup();
  }

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


}
