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

/**
 * BaseTS_REG_ACH_DISTRI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_reg_ach_distri
 * @property integer $id_reg_ach
 * @property integer $id_bn
 * @property string $codigo_ach
 * @property string $num_cuenta
 * @property string $tipo_cuenta
 * @property string $nombre_cuenta
 * @property string $doc_num
 * @property integer $id_tipo_identificacion
 * @property string $conf_ach
 * @property string $adjunto
 * @property integer $secuencia
 * @property integer $id_tercero
 * @property string $observaciones
 * @property INTERCEROS $INTERCEROS
 * @property TS_BN $TS_BN
 * @property TS_REG_ACH $TS_REG_ACH
 * 
 * @method integer           getIdRegAchDistri()         Returns the current record's "id_reg_ach_distri" value
 * @method integer           getIdRegAch()               Returns the current record's "id_reg_ach" value
 * @method integer           getIdBn()                   Returns the current record's "id_bn" value
 * @method string            getCodigoAch()              Returns the current record's "codigo_ach" value
 * @method string            getNumCuenta()              Returns the current record's "num_cuenta" value
 * @method string            getTipoCuenta()             Returns the current record's "tipo_cuenta" value
 * @method string            getNombreCuenta()           Returns the current record's "nombre_cuenta" value
 * @method string            getDocNum()                 Returns the current record's "doc_num" value
 * @method integer           getIdTipoIdentificacion()   Returns the current record's "id_tipo_identificacion" value
 * @method string            getConfAch()                Returns the current record's "conf_ach" value
 * @method string            getAdjunto()                Returns the current record's "adjunto" value
 * @method integer           getSecuencia()              Returns the current record's "secuencia" value
 * @method integer           getIdTercero()              Returns the current record's "id_tercero" value
 * @method string            getObservaciones()          Returns the current record's "observaciones" value
 * @method INTERCEROS        getINTERCEROS()             Returns the current record's "INTERCEROS" value
 * @method TS_BN             getTSBN()                   Returns the current record's "TS_BN" value
 * @method TS_REG_ACH        getTSREGACH()               Returns the current record's "TS_REG_ACH" value
 * @method TS_REG_ACH_DISTRI setIdRegAchDistri()         Sets the current record's "id_reg_ach_distri" value
 * @method TS_REG_ACH_DISTRI setIdRegAch()               Sets the current record's "id_reg_ach" value
 * @method TS_REG_ACH_DISTRI setIdBn()                   Sets the current record's "id_bn" value
 * @method TS_REG_ACH_DISTRI setCodigoAch()              Sets the current record's "codigo_ach" value
 * @method TS_REG_ACH_DISTRI setNumCuenta()              Sets the current record's "num_cuenta" value
 * @method TS_REG_ACH_DISTRI setTipoCuenta()             Sets the current record's "tipo_cuenta" value
 * @method TS_REG_ACH_DISTRI setNombreCuenta()           Sets the current record's "nombre_cuenta" value
 * @method TS_REG_ACH_DISTRI setDocNum()                 Sets the current record's "doc_num" value
 * @method TS_REG_ACH_DISTRI setIdTipoIdentificacion()   Sets the current record's "id_tipo_identificacion" value
 * @method TS_REG_ACH_DISTRI setConfAch()                Sets the current record's "conf_ach" value
 * @method TS_REG_ACH_DISTRI setAdjunto()                Sets the current record's "adjunto" value
 * @method TS_REG_ACH_DISTRI setSecuencia()              Sets the current record's "secuencia" value
 * @method TS_REG_ACH_DISTRI setIdTercero()              Sets the current record's "id_tercero" value
 * @method TS_REG_ACH_DISTRI setObservaciones()          Sets the current record's "observaciones" value
 * @method TS_REG_ACH_DISTRI setINTERCEROS()             Sets the current record's "INTERCEROS" value
 * @method TS_REG_ACH_DISTRI setTSBN()                   Sets the current record's "TS_BN" value
 * @method TS_REG_ACH_DISTRI setTSREGACH()               Sets the current record's "TS_REG_ACH" 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_REG_ACH_DISTRI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_REG_ACH_DISTRI');
        $this->hasColumn('id_reg_ach_distri', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_reg_ach', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_bn', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('codigo_ach', 'string', 60, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 60,
             ));
        $this->hasColumn('num_cuenta', 'string', 60, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 60,
             ));
        $this->hasColumn('tipo_cuenta', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nombre_cuenta', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('doc_num', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_identificacion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('conf_ach', 'string', 10, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('adjunto', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('secuencia', 'integer', 6, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 6,
             ));
        $this->hasColumn('id_tercero', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             '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,
             ));
    }

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

        $this->hasOne('TS_BN', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasOne('TS_REG_ACH', array(
             'local' => 'id_reg_ach',
             'foreign' => 'id_reg_ach'));
    }
}