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

/**
 * BaseTS_SOPORTE_CXP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_soporte_cxp
 * @property integer $id_cxp
 * @property integer $id_tipo_soporte
 * @property integer $no_folios
 * @property integer $id_vigencia
 * @property string $ano_fiscal
 * @property TIPO_SOPORTE $TIPO_SOPORTE
 * @property TS_CXP $TS_CXP
 * @property TS_CXP $TS_CXP_3
 * @property TS_CXP $TS_CXP_4
 * @property TS_CXP $TS_CXP_5
 * @property TS_CXP $TS_CXP_6
 * @property TS_CXP $TS_CXP_7
 * @property TS_CXP $TS_CXP_8
 * @property TS_CXP $TS_CXP_9
 * @property TS_CXP $TS_CXP_10
 * 
 * @method integer        getIdSoporteCxp()    Returns the current record's "id_soporte_cxp" value
 * @method integer        getIdCxp()           Returns the current record's "id_cxp" value
 * @method integer        getIdTipoSoporte()   Returns the current record's "id_tipo_soporte" value
 * @method integer        getNoFolios()        Returns the current record's "no_folios" value
 * @method integer        getIdVigencia()      Returns the current record's "id_vigencia" value
 * @method string         getAnoFiscal()       Returns the current record's "ano_fiscal" value
 * @method TIPO_SOPORTE   getTIPOSOPORTE()     Returns the current record's "TIPO_SOPORTE" value
 * @method TS_CXP         getTSCXP()           Returns the current record's "TS_CXP" value
 * @method TS_CXP         getTSCXP3()          Returns the current record's "TS_CXP_3" value
 * @method TS_CXP         getTSCXP4()          Returns the current record's "TS_CXP_4" value
 * @method TS_CXP         getTSCXP5()          Returns the current record's "TS_CXP_5" value
 * @method TS_CXP         getTSCXP6()          Returns the current record's "TS_CXP_6" value
 * @method TS_CXP         getTSCXP7()          Returns the current record's "TS_CXP_7" value
 * @method TS_CXP         getTSCXP8()          Returns the current record's "TS_CXP_8" value
 * @method TS_CXP         getTSCXP9()          Returns the current record's "TS_CXP_9" value
 * @method TS_CXP         getTSCXP10()         Returns the current record's "TS_CXP_10" value
 * @method TS_SOPORTE_CXP setIdSoporteCxp()    Sets the current record's "id_soporte_cxp" value
 * @method TS_SOPORTE_CXP setIdCxp()           Sets the current record's "id_cxp" value
 * @method TS_SOPORTE_CXP setIdTipoSoporte()   Sets the current record's "id_tipo_soporte" value
 * @method TS_SOPORTE_CXP setNoFolios()        Sets the current record's "no_folios" value
 * @method TS_SOPORTE_CXP setIdVigencia()      Sets the current record's "id_vigencia" value
 * @method TS_SOPORTE_CXP setAnoFiscal()       Sets the current record's "ano_fiscal" value
 * @method TS_SOPORTE_CXP setTIPOSOPORTE()     Sets the current record's "TIPO_SOPORTE" value
 * @method TS_SOPORTE_CXP setTSCXP()           Sets the current record's "TS_CXP" value
 * @method TS_SOPORTE_CXP setTSCXP3()          Sets the current record's "TS_CXP_3" value
 * @method TS_SOPORTE_CXP setTSCXP4()          Sets the current record's "TS_CXP_4" value
 * @method TS_SOPORTE_CXP setTSCXP5()          Sets the current record's "TS_CXP_5" value
 * @method TS_SOPORTE_CXP setTSCXP6()          Sets the current record's "TS_CXP_6" value
 * @method TS_SOPORTE_CXP setTSCXP7()          Sets the current record's "TS_CXP_7" value
 * @method TS_SOPORTE_CXP setTSCXP8()          Sets the current record's "TS_CXP_8" value
 * @method TS_SOPORTE_CXP setTSCXP9()          Sets the current record's "TS_CXP_9" value
 * @method TS_SOPORTE_CXP setTSCXP10()         Sets the current record's "TS_CXP_10" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_SOPORTE_CXP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_SOPORTE_CXP');
        $this->hasColumn('id_soporte_cxp', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_cxp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_soporte', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_folios', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ano_fiscal', 'string', 4, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
    }

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

        $this->hasOne('TS_CXP', array(
             'local' => 'id_cxp',
             'foreign' => 'id_cxp'));

        $this->hasOne('TS_CXP as TS_CXP_3', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cxp'));

        $this->hasOne('TS_CXP as TS_CXP_4', array(
             'local' => 'ano_fiscal',
             'foreign' => 'id_cxp'));

        $this->hasOne('TS_CXP as TS_CXP_5', array(
             'local' => 'id_cxp',
             'foreign' => 'ano_fiscal'));

        $this->hasOne('TS_CXP as TS_CXP_6', array(
             'local' => 'id_vigencia',
             'foreign' => 'ano_fiscal'));

        $this->hasOne('TS_CXP as TS_CXP_7', array(
             'local' => 'ano_fiscal',
             'foreign' => 'ano_fiscal'));

        $this->hasOne('TS_CXP as TS_CXP_8', array(
             'local' => 'id_cxp',
             'foreign' => 'id_vigencia'));

        $this->hasOne('TS_CXP as TS_CXP_9', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('TS_CXP as TS_CXP_10', array(
             'local' => 'ano_fiscal',
             'foreign' => 'id_vigencia'));
    }
}