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

/**
 * BaseTS_ACT_BEN_REG
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_act_ben_reg
 * @property integer $identificacion
 * @property integer $secuencia
 * @property integer $id_bn
 * @property string $numero_cuenta
 * @property integer $id_tc
 * @property integer $id_ciudad
 * @property integer $dueno_cuenta
 * @property integer $estado
 * @property string $autorizado
 * @property string $suspendido
 * @property timestamp $fecha_proc
 * @property timestamp $fecha_sys
 * @property string $usuario
 * @property string $vigencia
 * @property timestamp $fecha_autor
 * @property timestamp $fecha_sus
 * @property string $path_autor
 * @property string $path_sus
 * @property integer $id_act_adm_autor
 * @property integer $id_act_adm_sus
 * @property string $codigo_ach
 * @property CIUDAD $CIUDAD
 * @property INTERCEROS $INTERCEROS
 * @property INTERCEROS $INTERCEROS_3
 * @property TS_BN $TS_BN
 * @property TS_TC $TS_TC
 * @property ACTO_ADMINISTRATIVO $ACTO_ADMINISTRATIVO
 * @property ACTO_ADMINISTRATIVO $ACTO_ADMINISTRATIVO_7
 * @property Doctrine_Collection $TS_OBL_REG
 * 
 * @method integer             getIdActBenReg()           Returns the current record's "id_act_ben_reg" value
 * @method integer             getIdentificacion()        Returns the current record's "identificacion" value
 * @method integer             getSecuencia()             Returns the current record's "secuencia" value
 * @method integer             getIdBn()                  Returns the current record's "id_bn" value
 * @method string              getNumeroCuenta()          Returns the current record's "numero_cuenta" value
 * @method integer             getIdTc()                  Returns the current record's "id_tc" value
 * @method integer             getIdCiudad()              Returns the current record's "id_ciudad" value
 * @method integer             getDuenoCuenta()           Returns the current record's "dueno_cuenta" value
 * @method integer             getEstado()                Returns the current record's "estado" value
 * @method string              getAutorizado()            Returns the current record's "autorizado" value
 * @method string              getSuspendido()            Returns the current record's "suspendido" value
 * @method timestamp           getFechaProc()             Returns the current record's "fecha_proc" value
 * @method timestamp           getFechaSys()              Returns the current record's "fecha_sys" value
 * @method string              getUsuario()               Returns the current record's "usuario" value
 * @method string              getVigencia()              Returns the current record's "vigencia" value
 * @method timestamp           getFechaAutor()            Returns the current record's "fecha_autor" value
 * @method timestamp           getFechaSus()              Returns the current record's "fecha_sus" value
 * @method string              getPathAutor()             Returns the current record's "path_autor" value
 * @method string              getPathSus()               Returns the current record's "path_sus" value
 * @method integer             getIdActAdmAutor()         Returns the current record's "id_act_adm_autor" value
 * @method integer             getIdActAdmSus()           Returns the current record's "id_act_adm_sus" value
 * @method string              getCodigoAch()             Returns the current record's "codigo_ach" value
 * @method CIUDAD              getCIUDAD()                Returns the current record's "CIUDAD" value
 * @method INTERCEROS          getINTERCEROS()            Returns the current record's "INTERCEROS" value
 * @method INTERCEROS          getINTERCEROS3()           Returns the current record's "INTERCEROS_3" value
 * @method TS_BN               getTSBN()                  Returns the current record's "TS_BN" value
 * @method TS_TC               getTSTC()                  Returns the current record's "TS_TC" value
 * @method ACTO_ADMINISTRATIVO getACTOADMINISTRATIVO()    Returns the current record's "ACTO_ADMINISTRATIVO" value
 * @method ACTO_ADMINISTRATIVO getACTOADMINISTRATIVO7()   Returns the current record's "ACTO_ADMINISTRATIVO_7" value
 * @method Doctrine_Collection getTSOBLREG()              Returns the current record's "TS_OBL_REG" collection
 * @method TS_ACT_BEN_REG      setIdActBenReg()           Sets the current record's "id_act_ben_reg" value
 * @method TS_ACT_BEN_REG      setIdentificacion()        Sets the current record's "identificacion" value
 * @method TS_ACT_BEN_REG      setSecuencia()             Sets the current record's "secuencia" value
 * @method TS_ACT_BEN_REG      setIdBn()                  Sets the current record's "id_bn" value
 * @method TS_ACT_BEN_REG      setNumeroCuenta()          Sets the current record's "numero_cuenta" value
 * @method TS_ACT_BEN_REG      setIdTc()                  Sets the current record's "id_tc" value
 * @method TS_ACT_BEN_REG      setIdCiudad()              Sets the current record's "id_ciudad" value
 * @method TS_ACT_BEN_REG      setDuenoCuenta()           Sets the current record's "dueno_cuenta" value
 * @method TS_ACT_BEN_REG      setEstado()                Sets the current record's "estado" value
 * @method TS_ACT_BEN_REG      setAutorizado()            Sets the current record's "autorizado" value
 * @method TS_ACT_BEN_REG      setSuspendido()            Sets the current record's "suspendido" value
 * @method TS_ACT_BEN_REG      setFechaProc()             Sets the current record's "fecha_proc" value
 * @method TS_ACT_BEN_REG      setFechaSys()              Sets the current record's "fecha_sys" value
 * @method TS_ACT_BEN_REG      setUsuario()               Sets the current record's "usuario" value
 * @method TS_ACT_BEN_REG      setVigencia()              Sets the current record's "vigencia" value
 * @method TS_ACT_BEN_REG      setFechaAutor()            Sets the current record's "fecha_autor" value
 * @method TS_ACT_BEN_REG      setFechaSus()              Sets the current record's "fecha_sus" value
 * @method TS_ACT_BEN_REG      setPathAutor()             Sets the current record's "path_autor" value
 * @method TS_ACT_BEN_REG      setPathSus()               Sets the current record's "path_sus" value
 * @method TS_ACT_BEN_REG      setIdActAdmAutor()         Sets the current record's "id_act_adm_autor" value
 * @method TS_ACT_BEN_REG      setIdActAdmSus()           Sets the current record's "id_act_adm_sus" value
 * @method TS_ACT_BEN_REG      setCodigoAch()             Sets the current record's "codigo_ach" value
 * @method TS_ACT_BEN_REG      setCIUDAD()                Sets the current record's "CIUDAD" value
 * @method TS_ACT_BEN_REG      setINTERCEROS()            Sets the current record's "INTERCEROS" value
 * @method TS_ACT_BEN_REG      setINTERCEROS3()           Sets the current record's "INTERCEROS_3" value
 * @method TS_ACT_BEN_REG      setTSBN()                  Sets the current record's "TS_BN" value
 * @method TS_ACT_BEN_REG      setTSTC()                  Sets the current record's "TS_TC" value
 * @method TS_ACT_BEN_REG      setACTOADMINISTRATIVO()    Sets the current record's "ACTO_ADMINISTRATIVO" value
 * @method TS_ACT_BEN_REG      setACTOADMINISTRATIVO7()   Sets the current record's "ACTO_ADMINISTRATIVO_7" value
 * @method TS_ACT_BEN_REG      setTSOBLREG()              Sets the current record's "TS_OBL_REG" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_ACT_BEN_REG extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_ACT_BEN_REG');
        $this->hasColumn('id_act_ben_reg', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('identificacion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('secuencia', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_bn', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('numero_cuenta', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_ciudad', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('dueno_cuenta', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('autorizado', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('suspendido', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('fecha_proc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('fecha_autor', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_sus', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('path_autor', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('path_sus', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('id_act_adm_autor', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_act_adm_sus', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('codigo_ach', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'identificacion',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('INTERCEROS as INTERCEROS_3', array(
             'local' => 'dueno_cuenta',
             'foreign' => 'id_mae_ter'));

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

        $this->hasOne('TS_TC', array(
             'local' => 'id_tc',
             'foreign' => 'id'));

        $this->hasOne('ACTO_ADMINISTRATIVO', array(
             'local' => 'id_act_adm_autor',
             'foreign' => 'id_act_adm'));

        $this->hasOne('ACTO_ADMINISTRATIVO as ACTO_ADMINISTRATIVO_7', array(
             'local' => 'id_act_adm_sus',
             'foreign' => 'id_act_adm'));

        $this->hasMany('TS_OBL_REG', array(
             'local' => 'id_act_ben_reg',
             'foreign' => 'id_act_ben_reg'));
    }
}