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

/**
 * BaseTS_BN
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_bn
 * @property string $codigo
 * @property string $descripcion
 * @property string $estado
 * @property string $abreviatura
 * @property string $codigo_ach
 * @property Doctrine_Collection $TS_SALDO_BANC
 * @property Doctrine_Collection $TS_REG_ACH_DISTRI
 * @property Doctrine_Collection $TS_RC_CH
 * @property Doctrine_Collection $TS_M_CH
 * @property Doctrine_Collection $TS_MOV_BANC
 * @property Doctrine_Collection $TS_FORMA_PAGO_DISTRI
 * @property Doctrine_Collection $TS_EMISION_PAGO
 * @property Doctrine_Collection $TS_DIS_REG
 * @property Doctrine_Collection $TS_CB
 * @property Doctrine_Collection $TS_ACT_BEN_REG
 * @property Doctrine_Collection $TR_DIS_VAL
 * @property Doctrine_Collection $RE_RECAUDO
 * @property Doctrine_Collection $RE_MINERAL
 * @property Doctrine_Collection $RE_LOTE
 * @property Doctrine_Collection $RE_DISTRIBUCION
 * @property Doctrine_Collection $PR_PG
 * @property Doctrine_Collection $NO_PAGO_FUNC
 * @property Doctrine_Collection $CM_SALDO_BANC
 * @property Doctrine_Collection $CM_M_CH
 * @property Doctrine_Collection $CM_MOV_BANC
 * @property Doctrine_Collection $CM_EMISION_PAGO
 * @property Doctrine_Collection $CM_CB
 * @property Doctrine_Collection $CA_FACTURA_PAGO
 * @property Doctrine_Collection $CA_CREDITO
 * 
 * @method integer             getIdBn()                 Returns the current record's "id_bn" value
 * @method string              getCodigo()               Returns the current record's "codigo" value
 * @method string              getDescripcion()          Returns the current record's "descripcion" value
 * @method string              getEstado()               Returns the current record's "estado" value
 * @method string              getAbreviatura()          Returns the current record's "abreviatura" value
 * @method string              getCodigoAch()            Returns the current record's "codigo_ach" value
 * @method Doctrine_Collection getTSSALDOBANC()          Returns the current record's "TS_SALDO_BANC" collection
 * @method Doctrine_Collection getTSREGACHDISTRI()       Returns the current record's "TS_REG_ACH_DISTRI" collection
 * @method Doctrine_Collection getTSRCCH()               Returns the current record's "TS_RC_CH" collection
 * @method Doctrine_Collection getTSMCH()                Returns the current record's "TS_M_CH" collection
 * @method Doctrine_Collection getTSMOVBANC()            Returns the current record's "TS_MOV_BANC" collection
 * @method Doctrine_Collection getTSFORMAPAGODISTRI()    Returns the current record's "TS_FORMA_PAGO_DISTRI" collection
 * @method Doctrine_Collection getTSEMISIONPAGO()        Returns the current record's "TS_EMISION_PAGO" collection
 * @method Doctrine_Collection getTSDISREG()             Returns the current record's "TS_DIS_REG" collection
 * @method Doctrine_Collection getTSCB()                 Returns the current record's "TS_CB" collection
 * @method Doctrine_Collection getTSACTBENREG()          Returns the current record's "TS_ACT_BEN_REG" collection
 * @method Doctrine_Collection getTRDISVAL()             Returns the current record's "TR_DIS_VAL" collection
 * @method Doctrine_Collection getRERECAUDO()            Returns the current record's "RE_RECAUDO" collection
 * @method Doctrine_Collection getREMINERAL()            Returns the current record's "RE_MINERAL" collection
 * @method Doctrine_Collection getRELOTE()               Returns the current record's "RE_LOTE" collection
 * @method Doctrine_Collection getREDISTRIBUCION()       Returns the current record's "RE_DISTRIBUCION" collection
 * @method Doctrine_Collection getPRPG()                 Returns the current record's "PR_PG" collection
 * @method Doctrine_Collection getNOPAGOFUNC()           Returns the current record's "NO_PAGO_FUNC" collection
 * @method Doctrine_Collection getCMSALDOBANC()          Returns the current record's "CM_SALDO_BANC" collection
 * @method Doctrine_Collection getCMMCH()                Returns the current record's "CM_M_CH" collection
 * @method Doctrine_Collection getCMMOVBANC()            Returns the current record's "CM_MOV_BANC" collection
 * @method Doctrine_Collection getCMEMISIONPAGO()        Returns the current record's "CM_EMISION_PAGO" collection
 * @method Doctrine_Collection getCMCB()                 Returns the current record's "CM_CB" collection
 * @method Doctrine_Collection getCAFACTURAPAGO()        Returns the current record's "CA_FACTURA_PAGO" collection
 * @method Doctrine_Collection getCACREDITO()            Returns the current record's "CA_CREDITO" collection
 * @method TS_BN               setIdBn()                 Sets the current record's "id_bn" value
 * @method TS_BN               setCodigo()               Sets the current record's "codigo" value
 * @method TS_BN               setDescripcion()          Sets the current record's "descripcion" value
 * @method TS_BN               setEstado()               Sets the current record's "estado" value
 * @method TS_BN               setAbreviatura()          Sets the current record's "abreviatura" value
 * @method TS_BN               setCodigoAch()            Sets the current record's "codigo_ach" value
 * @method TS_BN               setTSSALDOBANC()          Sets the current record's "TS_SALDO_BANC" collection
 * @method TS_BN               setTSREGACHDISTRI()       Sets the current record's "TS_REG_ACH_DISTRI" collection
 * @method TS_BN               setTSRCCH()               Sets the current record's "TS_RC_CH" collection
 * @method TS_BN               setTSMCH()                Sets the current record's "TS_M_CH" collection
 * @method TS_BN               setTSMOVBANC()            Sets the current record's "TS_MOV_BANC" collection
 * @method TS_BN               setTSFORMAPAGODISTRI()    Sets the current record's "TS_FORMA_PAGO_DISTRI" collection
 * @method TS_BN               setTSEMISIONPAGO()        Sets the current record's "TS_EMISION_PAGO" collection
 * @method TS_BN               setTSDISREG()             Sets the current record's "TS_DIS_REG" collection
 * @method TS_BN               setTSCB()                 Sets the current record's "TS_CB" collection
 * @method TS_BN               setTSACTBENREG()          Sets the current record's "TS_ACT_BEN_REG" collection
 * @method TS_BN               setTRDISVAL()             Sets the current record's "TR_DIS_VAL" collection
 * @method TS_BN               setRERECAUDO()            Sets the current record's "RE_RECAUDO" collection
 * @method TS_BN               setREMINERAL()            Sets the current record's "RE_MINERAL" collection
 * @method TS_BN               setRELOTE()               Sets the current record's "RE_LOTE" collection
 * @method TS_BN               setREDISTRIBUCION()       Sets the current record's "RE_DISTRIBUCION" collection
 * @method TS_BN               setPRPG()                 Sets the current record's "PR_PG" collection
 * @method TS_BN               setNOPAGOFUNC()           Sets the current record's "NO_PAGO_FUNC" collection
 * @method TS_BN               setCMSALDOBANC()          Sets the current record's "CM_SALDO_BANC" collection
 * @method TS_BN               setCMMCH()                Sets the current record's "CM_M_CH" collection
 * @method TS_BN               setCMMOVBANC()            Sets the current record's "CM_MOV_BANC" collection
 * @method TS_BN               setCMEMISIONPAGO()        Sets the current record's "CM_EMISION_PAGO" collection
 * @method TS_BN               setCMCB()                 Sets the current record's "CM_CB" collection
 * @method TS_BN               setCAFACTURAPAGO()        Sets the current record's "CA_FACTURA_PAGO" collection
 * @method TS_BN               setCACREDITO()            Sets the current record's "CA_CREDITO" 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_BN extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_BN');
        $this->hasColumn('id_bn', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('estado', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('abreviatura', 'string', 3, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 3,
             ));
        $this->hasColumn('codigo_ach', 'string', 3, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 3,
             ));
    }

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

        $this->hasMany('TS_REG_ACH_DISTRI', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('TS_RC_CH', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('TS_M_CH', array(
             'local' => 'id_bn',
             'foreign' => 'id_ts_bn'));

        $this->hasMany('TS_MOV_BANC', array(
             'local' => 'id_bn',
             'foreign' => 'id_ts_bn'));

        $this->hasMany('TS_FORMA_PAGO_DISTRI', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('TS_EMISION_PAGO', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('TS_DIS_REG', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('TS_CB', array(
             'local' => 'id_bn',
             'foreign' => 'id_ts_bn'));

        $this->hasMany('TS_ACT_BEN_REG', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('TR_DIS_VAL', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('RE_RECAUDO', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('RE_MINERAL', array(
             'local' => 'id_bn',
             'foreign' => 'id_ts_bc'));

        $this->hasMany('RE_LOTE', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('RE_DISTRIBUCION', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('PR_PG', array(
             'local' => 'id_bn',
             'foreign' => 'id_ts_bn'));

        $this->hasMany('NO_PAGO_FUNC', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('CM_SALDO_BANC', array(
             'local' => 'id_bn',
             'foreign' => 'id_ts_bn'));

        $this->hasMany('CM_M_CH', array(
             'local' => 'id_bn',
             'foreign' => 'id_ts_bn'));

        $this->hasMany('CM_MOV_BANC', array(
             'local' => 'id_bn',
             'foreign' => 'id_ts_bn'));

        $this->hasMany('CM_EMISION_PAGO', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('CM_CB', array(
             'local' => 'id_bn',
             'foreign' => 'id_ts_bn'));

        $this->hasMany('CA_FACTURA_PAGO', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasMany('CA_CREDITO', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));
    }
}