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

/**
 * BaseTS_CXP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cxp
 * @property integer $id_rp
 * @property decimal $valor_cxp
 * @property string $ano_fiscal
 * @property timestamp $fecha_proceso
 * @property timestamp $fecha_sistema
 * @property string $observaciones
 * @property string $usuario
 * @property string $tipo
 * @property integer $id_vigencia
 * @property integer $estado
 * @property decimal $valor_cruce
 * @property integer $sec_reloj
 * @property timestamp $fecha_reloj
 * @property Doctrine_Collection $TS_SOPORTE_CXP
 * @property Doctrine_Collection $TS_SOPORTE_CXP_3
 * @property Doctrine_Collection $TS_SOPORTE_CXP_4
 * @property Doctrine_Collection $TS_SOPORTE_CXP_5
 * @property Doctrine_Collection $TS_SOPORTE_CXP_6
 * @property Doctrine_Collection $TS_SOPORTE_CXP_7
 * @property Doctrine_Collection $TS_SOPORTE_CXP_8
 * @property Doctrine_Collection $TS_SOPORTE_CXP_9
 * @property Doctrine_Collection $TS_SOPORTE_CXP_10
 * @property Doctrine_Collection $TS_ANU_CXP
 * @property Doctrine_Collection $TS_ANU_CXP_2
 * @property Doctrine_Collection $TS_ANU_CXP_3
 * @property Doctrine_Collection $TS_ANU_CXP_4
 * @property Doctrine_Collection $TS_ANU_CXP_5
 * @property Doctrine_Collection $TS_ANU_CXP_6
 * @property Doctrine_Collection $TS_ANU_CXP_7
 * @property Doctrine_Collection $TS_ANU_CXP_8
 * @property Doctrine_Collection $TS_ANU_CXP_9
 * 
 * @method integer             getIdCxp()             Returns the current record's "id_cxp" value
 * @method integer             getIdRp()              Returns the current record's "id_rp" value
 * @method decimal             getValorCxp()          Returns the current record's "valor_cxp" value
 * @method string              getAnoFiscal()         Returns the current record's "ano_fiscal" value
 * @method timestamp           getFechaProceso()      Returns the current record's "fecha_proceso" value
 * @method timestamp           getFechaSistema()      Returns the current record's "fecha_sistema" value
 * @method string              getObservaciones()     Returns the current record's "observaciones" value
 * @method string              getUsuario()           Returns the current record's "usuario" value
 * @method string              getTipo()              Returns the current record's "tipo" value
 * @method integer             getIdVigencia()        Returns the current record's "id_vigencia" value
 * @method integer             getEstado()            Returns the current record's "estado" value
 * @method decimal             getValorCruce()        Returns the current record's "valor_cruce" value
 * @method integer             getSecReloj()          Returns the current record's "sec_reloj" value
 * @method timestamp           getFechaReloj()        Returns the current record's "fecha_reloj" value
 * @method Doctrine_Collection getTSSOPORTECXP()      Returns the current record's "TS_SOPORTE_CXP" collection
 * @method Doctrine_Collection getTSSOPORTECXP3()     Returns the current record's "TS_SOPORTE_CXP_3" collection
 * @method Doctrine_Collection getTSSOPORTECXP4()     Returns the current record's "TS_SOPORTE_CXP_4" collection
 * @method Doctrine_Collection getTSSOPORTECXP5()     Returns the current record's "TS_SOPORTE_CXP_5" collection
 * @method Doctrine_Collection getTSSOPORTECXP6()     Returns the current record's "TS_SOPORTE_CXP_6" collection
 * @method Doctrine_Collection getTSSOPORTECXP7()     Returns the current record's "TS_SOPORTE_CXP_7" collection
 * @method Doctrine_Collection getTSSOPORTECXP8()     Returns the current record's "TS_SOPORTE_CXP_8" collection
 * @method Doctrine_Collection getTSSOPORTECXP9()     Returns the current record's "TS_SOPORTE_CXP_9" collection
 * @method Doctrine_Collection getTSSOPORTECXP10()    Returns the current record's "TS_SOPORTE_CXP_10" collection
 * @method Doctrine_Collection getTSANUCXP()          Returns the current record's "TS_ANU_CXP" collection
 * @method Doctrine_Collection getTSANUCXP2()         Returns the current record's "TS_ANU_CXP_2" collection
 * @method Doctrine_Collection getTSANUCXP3()         Returns the current record's "TS_ANU_CXP_3" collection
 * @method Doctrine_Collection getTSANUCXP4()         Returns the current record's "TS_ANU_CXP_4" collection
 * @method Doctrine_Collection getTSANUCXP5()         Returns the current record's "TS_ANU_CXP_5" collection
 * @method Doctrine_Collection getTSANUCXP6()         Returns the current record's "TS_ANU_CXP_6" collection
 * @method Doctrine_Collection getTSANUCXP7()         Returns the current record's "TS_ANU_CXP_7" collection
 * @method Doctrine_Collection getTSANUCXP8()         Returns the current record's "TS_ANU_CXP_8" collection
 * @method Doctrine_Collection getTSANUCXP9()         Returns the current record's "TS_ANU_CXP_9" collection
 * @method TS_CXP              setIdCxp()             Sets the current record's "id_cxp" value
 * @method TS_CXP              setIdRp()              Sets the current record's "id_rp" value
 * @method TS_CXP              setValorCxp()          Sets the current record's "valor_cxp" value
 * @method TS_CXP              setAnoFiscal()         Sets the current record's "ano_fiscal" value
 * @method TS_CXP              setFechaProceso()      Sets the current record's "fecha_proceso" value
 * @method TS_CXP              setFechaSistema()      Sets the current record's "fecha_sistema" value
 * @method TS_CXP              setObservaciones()     Sets the current record's "observaciones" value
 * @method TS_CXP              setUsuario()           Sets the current record's "usuario" value
 * @method TS_CXP              setTipo()              Sets the current record's "tipo" value
 * @method TS_CXP              setIdVigencia()        Sets the current record's "id_vigencia" value
 * @method TS_CXP              setEstado()            Sets the current record's "estado" value
 * @method TS_CXP              setValorCruce()        Sets the current record's "valor_cruce" value
 * @method TS_CXP              setSecReloj()          Sets the current record's "sec_reloj" value
 * @method TS_CXP              setFechaReloj()        Sets the current record's "fecha_reloj" value
 * @method TS_CXP              setTSSOPORTECXP()      Sets the current record's "TS_SOPORTE_CXP" collection
 * @method TS_CXP              setTSSOPORTECXP3()     Sets the current record's "TS_SOPORTE_CXP_3" collection
 * @method TS_CXP              setTSSOPORTECXP4()     Sets the current record's "TS_SOPORTE_CXP_4" collection
 * @method TS_CXP              setTSSOPORTECXP5()     Sets the current record's "TS_SOPORTE_CXP_5" collection
 * @method TS_CXP              setTSSOPORTECXP6()     Sets the current record's "TS_SOPORTE_CXP_6" collection
 * @method TS_CXP              setTSSOPORTECXP7()     Sets the current record's "TS_SOPORTE_CXP_7" collection
 * @method TS_CXP              setTSSOPORTECXP8()     Sets the current record's "TS_SOPORTE_CXP_8" collection
 * @method TS_CXP              setTSSOPORTECXP9()     Sets the current record's "TS_SOPORTE_CXP_9" collection
 * @method TS_CXP              setTSSOPORTECXP10()    Sets the current record's "TS_SOPORTE_CXP_10" collection
 * @method TS_CXP              setTSANUCXP()          Sets the current record's "TS_ANU_CXP" collection
 * @method TS_CXP              setTSANUCXP2()         Sets the current record's "TS_ANU_CXP_2" collection
 * @method TS_CXP              setTSANUCXP3()         Sets the current record's "TS_ANU_CXP_3" collection
 * @method TS_CXP              setTSANUCXP4()         Sets the current record's "TS_ANU_CXP_4" collection
 * @method TS_CXP              setTSANUCXP5()         Sets the current record's "TS_ANU_CXP_5" collection
 * @method TS_CXP              setTSANUCXP6()         Sets the current record's "TS_ANU_CXP_6" collection
 * @method TS_CXP              setTSANUCXP7()         Sets the current record's "TS_ANU_CXP_7" collection
 * @method TS_CXP              setTSANUCXP8()         Sets the current record's "TS_ANU_CXP_8" collection
 * @method TS_CXP              setTSANUCXP9()         Sets the current record's "TS_ANU_CXP_9" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_CXP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_CXP');
        $this->hasColumn('id_cxp', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_rp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_cxp', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ano_fiscal', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_sistema', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tipo', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('valor_cruce', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('sec_reloj', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_reloj', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('TS_SOPORTE_CXP', array(
             'local' => 'id_cxp',
             'foreign' => 'id_cxp'));

        $this->hasMany('TS_SOPORTE_CXP as TS_SOPORTE_CXP_3', array(
             'local' => 'id_cxp',
             'foreign' => 'id_vigencia'));

        $this->hasMany('TS_SOPORTE_CXP as TS_SOPORTE_CXP_4', array(
             'local' => 'id_cxp',
             'foreign' => 'ano_fiscal'));

        $this->hasMany('TS_SOPORTE_CXP as TS_SOPORTE_CXP_5', array(
             'local' => 'ano_fiscal',
             'foreign' => 'id_cxp'));

        $this->hasMany('TS_SOPORTE_CXP as TS_SOPORTE_CXP_6', array(
             'local' => 'ano_fiscal',
             'foreign' => 'id_vigencia'));

        $this->hasMany('TS_SOPORTE_CXP as TS_SOPORTE_CXP_7', array(
             'local' => 'ano_fiscal',
             'foreign' => 'ano_fiscal'));

        $this->hasMany('TS_SOPORTE_CXP as TS_SOPORTE_CXP_8', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cxp'));

        $this->hasMany('TS_SOPORTE_CXP as TS_SOPORTE_CXP_9', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasMany('TS_SOPORTE_CXP as TS_SOPORTE_CXP_10', array(
             'local' => 'id_vigencia',
             'foreign' => 'ano_fiscal'));

        $this->hasMany('TS_ANU_CXP', array(
             'local' => 'id_cxp',
             'foreign' => 'id_cxp'));

        $this->hasMany('TS_ANU_CXP as TS_ANU_CXP_2', array(
             'local' => 'id_cxp',
             'foreign' => 'id_vigencia'));

        $this->hasMany('TS_ANU_CXP as TS_ANU_CXP_3', array(
             'local' => 'id_cxp',
             'foreign' => 'vigencia'));

        $this->hasMany('TS_ANU_CXP as TS_ANU_CXP_4', array(
             'local' => 'ano_fiscal',
             'foreign' => 'id_cxp'));

        $this->hasMany('TS_ANU_CXP as TS_ANU_CXP_5', array(
             'local' => 'ano_fiscal',
             'foreign' => 'id_vigencia'));

        $this->hasMany('TS_ANU_CXP as TS_ANU_CXP_6', array(
             'local' => 'ano_fiscal',
             'foreign' => 'vigencia'));

        $this->hasMany('TS_ANU_CXP as TS_ANU_CXP_7', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cxp'));

        $this->hasMany('TS_ANU_CXP as TS_ANU_CXP_8', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasMany('TS_ANU_CXP as TS_ANU_CXP_9', array(
             'local' => 'id_vigencia',
             'foreign' => 'vigencia'));
    }
}