<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('TS_NOT_TESO', 'doctrine');

/**
 * BaseTS_NOT_TESO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_not_teso
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property integer $id_concepto
 * @property integer $id_tip_doc
 * @property integer $numero
 * @property timestamp $fecha
 * @property integer $id_tercero
 * @property decimal $vr_bruto
 * @property decimal $vr_iva
 * @property decimal $total
 * @property string $observaciones
 * @property decimal $vr_neto_acreedor
 * @property timestamp $fecha_proceso
 * @property string $usuario
 * @property timestamp $fecha_sys
 * @property string $estado
 * @property INTERCEROS $INTERCEROS
 * @property TS_CONCEP_NOTAS $TS_CONCEP_NOTAS
 * @property VIGENCIA $VIGENCIA
 * @property TS_TD $TS_TD
 * @property Doctrine_Collection $TS_NOT_DEDUCCIONES
 * @property Doctrine_Collection $TS_ANUL_NOTAS_TESO
 * 
 * @method integer             getIdNotTeso()          Returns the current record's "id_not_teso" value
 * @method integer             getIdVigencia()         Returns the current record's "id_vigencia" value
 * @method string              getVigencia()           Returns the current record's "vigencia" value
 * @method integer             getIdConcepto()         Returns the current record's "id_concepto" value
 * @method integer             getIdTipDoc()           Returns the current record's "id_tip_doc" value
 * @method integer             getNumero()             Returns the current record's "numero" value
 * @method timestamp           getFecha()              Returns the current record's "fecha" value
 * @method integer             getIdTercero()          Returns the current record's "id_tercero" value
 * @method decimal             getVrBruto()            Returns the current record's "vr_bruto" value
 * @method decimal             getVrIva()              Returns the current record's "vr_iva" value
 * @method decimal             getTotal()              Returns the current record's "total" value
 * @method string              getObservaciones()      Returns the current record's "observaciones" value
 * @method decimal             getVrNetoAcreedor()     Returns the current record's "vr_neto_acreedor" value
 * @method timestamp           getFechaProceso()       Returns the current record's "fecha_proceso" value
 * @method string              getUsuario()            Returns the current record's "usuario" value
 * @method timestamp           getFechaSys()           Returns the current record's "fecha_sys" value
 * @method string              getEstado()             Returns the current record's "estado" value
 * @method INTERCEROS          getINTERCEROS()         Returns the current record's "INTERCEROS" value
 * @method TS_CONCEP_NOTAS     getTSCONCEPNOTAS()      Returns the current record's "TS_CONCEP_NOTAS" value
 * @method VIGENCIA            getVIGENCIA()           Returns the current record's "VIGENCIA" value
 * @method TS_TD               getTSTD()               Returns the current record's "TS_TD" value
 * @method Doctrine_Collection getTSNOTDEDUCCIONES()   Returns the current record's "TS_NOT_DEDUCCIONES" collection
 * @method Doctrine_Collection getTSANULNOTASTESO()    Returns the current record's "TS_ANUL_NOTAS_TESO" collection
 * @method TS_NOT_TESO         setIdNotTeso()          Sets the current record's "id_not_teso" value
 * @method TS_NOT_TESO         setIdVigencia()         Sets the current record's "id_vigencia" value
 * @method TS_NOT_TESO         setVigencia()           Sets the current record's "vigencia" value
 * @method TS_NOT_TESO         setIdConcepto()         Sets the current record's "id_concepto" value
 * @method TS_NOT_TESO         setIdTipDoc()           Sets the current record's "id_tip_doc" value
 * @method TS_NOT_TESO         setNumero()             Sets the current record's "numero" value
 * @method TS_NOT_TESO         setFecha()              Sets the current record's "fecha" value
 * @method TS_NOT_TESO         setIdTercero()          Sets the current record's "id_tercero" value
 * @method TS_NOT_TESO         setVrBruto()            Sets the current record's "vr_bruto" value
 * @method TS_NOT_TESO         setVrIva()              Sets the current record's "vr_iva" value
 * @method TS_NOT_TESO         setTotal()              Sets the current record's "total" value
 * @method TS_NOT_TESO         setObservaciones()      Sets the current record's "observaciones" value
 * @method TS_NOT_TESO         setVrNetoAcreedor()     Sets the current record's "vr_neto_acreedor" value
 * @method TS_NOT_TESO         setFechaProceso()       Sets the current record's "fecha_proceso" value
 * @method TS_NOT_TESO         setUsuario()            Sets the current record's "usuario" value
 * @method TS_NOT_TESO         setFechaSys()           Sets the current record's "fecha_sys" value
 * @method TS_NOT_TESO         setEstado()             Sets the current record's "estado" value
 * @method TS_NOT_TESO         setINTERCEROS()         Sets the current record's "INTERCEROS" value
 * @method TS_NOT_TESO         setTSCONCEPNOTAS()      Sets the current record's "TS_CONCEP_NOTAS" value
 * @method TS_NOT_TESO         setVIGENCIA()           Sets the current record's "VIGENCIA" value
 * @method TS_NOT_TESO         setTSTD()               Sets the current record's "TS_TD" value
 * @method TS_NOT_TESO         setTSNOTDEDUCCIONES()   Sets the current record's "TS_NOT_DEDUCCIONES" collection
 * @method TS_NOT_TESO         setTSANULNOTASTESO()    Sets the current record's "TS_ANUL_NOTAS_TESO" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_NOT_TESO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_NOT_TESO');
        $this->hasColumn('id_not_teso', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_concepto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tip_doc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('numero', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_tercero', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vr_bruto', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vr_iva', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('total', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('vr_neto_acreedor', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('INTERCEROS', array(
             'local' => 'id_tercero',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('TS_CONCEP_NOTAS', array(
             'local' => 'id_concepto',
             'foreign' => 'id_concepto'));

        $this->hasOne('VIGENCIA', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('TS_TD', array(
             'local' => 'id_tip_doc',
             'foreign' => 'id'));

        $this->hasMany('TS_NOT_DEDUCCIONES', array(
             'local' => 'id_not_teso',
             'foreign' => 'id_not_teso'));

        $this->hasMany('TS_ANUL_NOTAS_TESO', array(
             'local' => 'id_not_teso',
             'foreign' => 'id_not_teso'));
    }
}