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

/**
 * BaseCBR_RESOLUCION_TIT
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_resolucion_tit
 * @property integer $id_titulo_minero
 * @property integer $id_concepto_resol
 * @property timestamp $fecha_expedicion
 * @property timestamp $fecha_ejecutoria
 * @property string $no_resolucion
 * @property timestamp $fecha_exigibilidad
 * @property integer $id_entidad_expide
 * @property timestamp $fecha_fin_exigibilidad
 * @property CBR_CONCEPTO_RESOL $CBR_CONCEPTO_RESOL
 * @property CBR_ENTIDAD_EXPIDE $CBR_ENTIDAD_EXPIDE
 * @property Doctrine_Collection $CBR_REGISTRO_CONCEPTO
 * 
 * @method integer             getIdResolucionTit()        Returns the current record's "id_resolucion_tit" value
 * @method integer             getIdTituloMinero()         Returns the current record's "id_titulo_minero" value
 * @method integer             getIdConceptoResol()        Returns the current record's "id_concepto_resol" value
 * @method timestamp           getFechaExpedicion()        Returns the current record's "fecha_expedicion" value
 * @method timestamp           getFechaEjecutoria()        Returns the current record's "fecha_ejecutoria" value
 * @method string              getNoResolucion()           Returns the current record's "no_resolucion" value
 * @method timestamp           getFechaExigibilidad()      Returns the current record's "fecha_exigibilidad" value
 * @method integer             getIdEntidadExpide()        Returns the current record's "id_entidad_expide" value
 * @method timestamp           getFechaFinExigibilidad()   Returns the current record's "fecha_fin_exigibilidad" value
 * @method CBR_CONCEPTO_RESOL  getCBRCONCEPTORESOL()       Returns the current record's "CBR_CONCEPTO_RESOL" value
 * @method CBR_ENTIDAD_EXPIDE  getCBRENTIDADEXPIDE()       Returns the current record's "CBR_ENTIDAD_EXPIDE" value
 * @method Doctrine_Collection getCBRREGISTROCONCEPTO()    Returns the current record's "CBR_REGISTRO_CONCEPTO" collection
 * @method CBR_RESOLUCION_TIT  setIdResolucionTit()        Sets the current record's "id_resolucion_tit" value
 * @method CBR_RESOLUCION_TIT  setIdTituloMinero()         Sets the current record's "id_titulo_minero" value
 * @method CBR_RESOLUCION_TIT  setIdConceptoResol()        Sets the current record's "id_concepto_resol" value
 * @method CBR_RESOLUCION_TIT  setFechaExpedicion()        Sets the current record's "fecha_expedicion" value
 * @method CBR_RESOLUCION_TIT  setFechaEjecutoria()        Sets the current record's "fecha_ejecutoria" value
 * @method CBR_RESOLUCION_TIT  setNoResolucion()           Sets the current record's "no_resolucion" value
 * @method CBR_RESOLUCION_TIT  setFechaExigibilidad()      Sets the current record's "fecha_exigibilidad" value
 * @method CBR_RESOLUCION_TIT  setIdEntidadExpide()        Sets the current record's "id_entidad_expide" value
 * @method CBR_RESOLUCION_TIT  setFechaFinExigibilidad()   Sets the current record's "fecha_fin_exigibilidad" value
 * @method CBR_RESOLUCION_TIT  setCBRCONCEPTORESOL()       Sets the current record's "CBR_CONCEPTO_RESOL" value
 * @method CBR_RESOLUCION_TIT  setCBRENTIDADEXPIDE()       Sets the current record's "CBR_ENTIDAD_EXPIDE" value
 * @method CBR_RESOLUCION_TIT  setCBRREGISTROCONCEPTO()    Sets the current record's "CBR_REGISTRO_CONCEPTO" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCBR_RESOLUCION_TIT extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_RESOLUCION_TIT');
        $this->hasColumn('id_resolucion_tit', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_titulo_minero', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_concepto_resol', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_expedicion', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_ejecutoria', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('no_resolucion', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('fecha_exigibilidad', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_entidad_expide', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_fin_exigibilidad', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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

        $this->hasOne('CBR_ENTIDAD_EXPIDE', array(
             'local' => 'id_entidad_expide',
             'foreign' => 'id_entidad_expide'));

        $this->hasMany('CBR_REGISTRO_CONCEPTO', array(
             'local' => 'id_resolucion_tit',
             'foreign' => 'id_resolucion_tit'));
    }
}