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

/**
 * BaseTS_ANU_CXP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_anu_cxp
 * @property integer $id_cxp
 * @property timestamp $fecha_anul
 * @property string $observaciones
 * @property string $usuario
 * @property timestamp $fecha_log
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property TS_CXP $TS_CXP
 * @property TS_CXP $TS_CXP_2
 * @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
 * 
 * @method integer    getIdAnuCxp()      Returns the current record's "id_anu_cxp" value
 * @method integer    getIdCxp()         Returns the current record's "id_cxp" value
 * @method timestamp  getFechaAnul()     Returns the current record's "fecha_anul" value
 * @method string     getObservaciones() Returns the current record's "observaciones" value
 * @method string     getUsuario()       Returns the current record's "usuario" value
 * @method timestamp  getFechaLog()      Returns the current record's "fecha_log" value
 * @method integer    getIdVigencia()    Returns the current record's "id_vigencia" value
 * @method string     getVigencia()      Returns the current record's "vigencia" value
 * @method TS_CXP     getTSCXP()         Returns the current record's "TS_CXP" value
 * @method TS_CXP     getTSCXP2()        Returns the current record's "TS_CXP_2" 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_ANU_CXP setIdAnuCxp()      Sets the current record's "id_anu_cxp" value
 * @method TS_ANU_CXP setIdCxp()         Sets the current record's "id_cxp" value
 * @method TS_ANU_CXP setFechaAnul()     Sets the current record's "fecha_anul" value
 * @method TS_ANU_CXP setObservaciones() Sets the current record's "observaciones" value
 * @method TS_ANU_CXP setUsuario()       Sets the current record's "usuario" value
 * @method TS_ANU_CXP setFechaLog()      Sets the current record's "fecha_log" value
 * @method TS_ANU_CXP setIdVigencia()    Sets the current record's "id_vigencia" value
 * @method TS_ANU_CXP setVigencia()      Sets the current record's "vigencia" value
 * @method TS_ANU_CXP setTSCXP()         Sets the current record's "TS_CXP" value
 * @method TS_ANU_CXP setTSCXP2()        Sets the current record's "TS_CXP_2" value
 * @method TS_ANU_CXP setTSCXP3()        Sets the current record's "TS_CXP_3" value
 * @method TS_ANU_CXP setTSCXP4()        Sets the current record's "TS_CXP_4" value
 * @method TS_ANU_CXP setTSCXP5()        Sets the current record's "TS_CXP_5" value
 * @method TS_ANU_CXP setTSCXP6()        Sets the current record's "TS_CXP_6" value
 * @method TS_ANU_CXP setTSCXP7()        Sets the current record's "TS_CXP_7" value
 * @method TS_ANU_CXP setTSCXP8()        Sets the current record's "TS_CXP_8" value
 * @method TS_ANU_CXP setTSCXP9()        Sets the current record's "TS_CXP_9" value
 * 
 * @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_ANU_CXP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_ANU_CXP');
        $this->hasColumn('id_anu_cxp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_cxp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_anul', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
    }

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

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

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

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

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

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

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

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

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