<?php

// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('CBR_REMISION_TITULO', 'doctrine');

/**
 * BaseCBR_REMISION_TITULO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_remision_titulo
 * @property integer $numero_remision
 * @property integer $anho_remision
 * @property integer $numero_correpondencia
 * @property timestamp $fecha_remision
 * @property integer $id_par
 * @property integer $no_folios
 * @property integer $estado
 * @property CBR_PAR $CBR_PAR
 * @property Doctrine_Collection $CO_REPARTO
 * @property Doctrine_Collection $CBR_REPARTO
 * @property Doctrine_Collection $CBR_PROCESO_COACTIVO
 * @property Doctrine_Collection $CBR_INVESTIGA_BIENES
 * @property Doctrine_Collection $CBR_CIERRE_PERSUASIVO
 * @property Doctrine_Collection $CBR_AVOCA_CONOC
 * 
 * @method integer             getIdRemisionTitulo()      Returns the current record's "id_remision_titulo" value
 * @method integer             getNumeroRemision()        Returns the current record's "numero_remision" value
 * @method integer             getAnhoRemision()          Returns the current record's "anho_remision" value
 * @method integer             getNumeroCorrepondencia()  Returns the current record's "numero_correpondencia" value
 * @method timestamp           getFechaRemision()         Returns the current record's "fecha_remision" value
 * @method integer             getIdPar()                 Returns the current record's "id_par" value
 * @method integer             getNoFolios()              Returns the current record's "no_folios" value
 * @method integer             getEstado()                Returns the current record's "estado" value
 * @method CBR_PAR             getCBRPAR()                Returns the current record's "CBR_PAR" value
 * @method Doctrine_Collection getCOREPARTO()             Returns the current record's "CO_REPARTO" collection
 * @method Doctrine_Collection getCBRREPARTO()            Returns the current record's "CBR_REPARTO" collection
 * @method Doctrine_Collection getCBRPROCESOCOACTIVO()    Returns the current record's "CBR_PROCESO_COACTIVO" collection
 * @method Doctrine_Collection getCBRINVESTIGABIENES()    Returns the current record's "CBR_INVESTIGA_BIENES" collection
 * @method Doctrine_Collection getCBRCIERREPERSUASIVO()   Returns the current record's "CBR_CIERRE_PERSUASIVO" collection
 * @method Doctrine_Collection getCBRAVOCACONOC()         Returns the current record's "CBR_AVOCA_CONOC" collection
 * @method CBR_REMISION_TITULO setIdRemisionTitulo()      Sets the current record's "id_remision_titulo" value
 * @method CBR_REMISION_TITULO setNumeroRemision()        Sets the current record's "numero_remision" value
 * @method CBR_REMISION_TITULO setAnhoRemision()          Sets the current record's "anho_remision" value
 * @method CBR_REMISION_TITULO setNumeroCorrepondencia()  Sets the current record's "numero_correpondencia" value
 * @method CBR_REMISION_TITULO setFechaRemision()         Sets the current record's "fecha_remision" value
 * @method CBR_REMISION_TITULO setIdPar()                 Sets the current record's "id_par" value
 * @method CBR_REMISION_TITULO setNoFolios()              Sets the current record's "no_folios" value
 * @method CBR_REMISION_TITULO setEstado()                Sets the current record's "estado" value
 * @method CBR_REMISION_TITULO setCBRPAR()                Sets the current record's "CBR_PAR" value
 * @method CBR_REMISION_TITULO setCOREPARTO()             Sets the current record's "CO_REPARTO" collection
 * @method CBR_REMISION_TITULO setCBRREPARTO()            Sets the current record's "CBR_REPARTO" collection
 * @method CBR_REMISION_TITULO setCBRPROCESOCOACTIVO()    Sets the current record's "CBR_PROCESO_COACTIVO" collection
 * @method CBR_REMISION_TITULO setCBRINVESTIGABIENES()    Sets the current record's "CBR_INVESTIGA_BIENES" collection
 * @method CBR_REMISION_TITULO setCBRCIERREPERSUASIVO()   Sets the current record's "CBR_CIERRE_PERSUASIVO" collection
 * @method CBR_REMISION_TITULO setCBRAVOCACONOC()         Sets the current record's "CBR_AVOCA_CONOC" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCBR_REMISION_TITULO extends sfDoctrineRecord {

    public function setTableDefinition() {
        $this->setTableName('CBR_REMISION_TITULO');
        $this->hasColumn('id_remision_titulo', 'integer', 20, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 20,
        ));
        $this->hasColumn('numero_remision', 'integer', 20, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('anho_remision', 'integer', 20, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('numero_correpondencia', 'integer', 20, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('fecha_remision', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('id_par', 'integer', 20, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('cod_titulo', 'string', 20, array(
            'notnull' => true,
            'type' => 'string',
            '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('estado', 'integer', 1, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('usuario_log', 'integer', 20, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
    }

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

        $this->hasMany('CO_REPARTO', array(
            'local' => 'id_remision_titulo',
            'foreign' => 'id_remision_titulo'));

        $this->hasMany('CBR_REPARTO', array(
            'local' => 'id_remision_titulo',
            'foreign' => 'id_remision_titulo'));

        $this->hasMany('CBR_PROCESO_COACTIVO', array(
            'local' => 'id_remision_titulo',
            'foreign' => 'id_remision_titulo'));

        $this->hasMany('CBR_INVESTIGA_BIENES', array(
            'local' => 'id_remision_titulo',
            'foreign' => 'id_remision_titulo'));

        $this->hasMany('CBR_CIERRE_PERSUASIVO', array(
            'local' => 'id_remision_titulo',
            'foreign' => 'id_remision_titulo'));

        $this->hasMany('CBR_AVOCA_CONOC', array(
            'local' => 'id_remision_titulo',
            'foreign' => 'id_remision_titulo'));
    }

}
