<?php

/**
 * ComisionadosObjs form base class.
 *
 * @package    form
 * @subpackage comisionados_objs
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 15484 2009-02-13 13:13:51Z fabien $
 */
class BaseComisionadosObjsForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'nitocc'      => new sfWidgetFormInputHidden(),
      'codobj'      => new sfWidgetFormInputHidden(),
      'id_comision' => new sfWidgetFormInputHidden(),
      'valor'       => new sfWidgetFormInput(),
      'estado'      => new sfWidgetFormInput(),
      'vigencia'    => new sfWidgetFormInputHidden(),
      'observa'     => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'nitocc'      => new sfValidatorPropelChoice(array('model' => 'Terceros', 'column' => 'nitocc', 'required' => false)),
      'codobj'      => new sfValidatorPropelChoice(array('model' => 'ComisionadosObjs', 'column' => 'codobj', 'required' => false)),
      'id_comision' => new sfValidatorPropelChoice(array('model' => 'Comisiones', 'column' => 'vigencia', 'required' => false)),
      'valor'       => new sfValidatorNumber(array('required' => false)),
      'estado'      => new sfValidatorNumber(array('required' => false)),
      'vigencia'    => new sfValidatorPropelChoice(array('model' => 'Comisiones', 'column' => 'vigencia', 'required' => false)),
      'observa'     => new sfValidatorString(array('max_length' => 500, 'required' => false)),
    ));

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

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

    parent::setup();
  }

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


}
