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

/**
 * BaseCBR_INVESTIGA_BIENES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_investiga_bienes
 * @property integer $id_remision_titulo
 * @property integer $id_entidad_ib
 * @property string $no_oficio
 * @property timestamp $fecha_envio
 * @property string $adjunto
 * @property string $observaciones
 * @property CBR_ENTIDAD_IB $CBR_ENTIDAD_IB
 * @property CBR_REMISION_TITULO $CBR_REMISION_TITULO
 * 
 * @method integer              getIdInvestigaBienes()   Returns the current record's "id_investiga_bienes" value
 * @method integer              getIdRemisionTitulo()    Returns the current record's "id_remision_titulo" value
 * @method integer              getIdEntidadIb()         Returns the current record's "id_entidad_ib" value
 * @method string               getNoOficio()            Returns the current record's "no_oficio" value
 * @method timestamp            getFechaEnvio()          Returns the current record's "fecha_envio" value
 * @method string               getAdjunto()             Returns the current record's "adjunto" value
 * @method string               getObservaciones()       Returns the current record's "observaciones" value
 * @method CBR_ENTIDAD_IB       getCBRENTIDADIB()        Returns the current record's "CBR_ENTIDAD_IB" value
 * @method CBR_REMISION_TITULO  getCBRREMISIONTITULO()   Returns the current record's "CBR_REMISION_TITULO" value
 * @method CBR_INVESTIGA_BIENES setIdInvestigaBienes()   Sets the current record's "id_investiga_bienes" value
 * @method CBR_INVESTIGA_BIENES setIdRemisionTitulo()    Sets the current record's "id_remision_titulo" value
 * @method CBR_INVESTIGA_BIENES setIdEntidadIb()         Sets the current record's "id_entidad_ib" value
 * @method CBR_INVESTIGA_BIENES setNoOficio()            Sets the current record's "no_oficio" value
 * @method CBR_INVESTIGA_BIENES setFechaEnvio()          Sets the current record's "fecha_envio" value
 * @method CBR_INVESTIGA_BIENES setAdjunto()             Sets the current record's "adjunto" value
 * @method CBR_INVESTIGA_BIENES setObservaciones()       Sets the current record's "observaciones" value
 * @method CBR_INVESTIGA_BIENES setCBRENTIDADIB()        Sets the current record's "CBR_ENTIDAD_IB" value
 * @method CBR_INVESTIGA_BIENES setCBRREMISIONTITULO()   Sets the current record's "CBR_REMISION_TITULO" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCBR_INVESTIGA_BIENES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_INVESTIGA_BIENES');
        $this->hasColumn('id_investiga_bienes', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_remision_titulo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_entidad_ib', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_oficio', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_envio', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('adjunto', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $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('CBR_ENTIDAD_IB', array(
             'local' => 'id_entidad_ib',
             'foreign' => 'id_entidad_ib'));

        $this->hasOne('CBR_REMISION_TITULO', array(
             'local' => 'id_remision_titulo',
             'foreign' => 'id_remision_titulo'));
    }
}