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

/**
 * BaseCBR_MEDIDA_CAUTELAR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_medida_cautelar
 * @property integer $id_facilidad_pago
 * @property integer $no_resolucion
 * @property timestamp $fecha_resol
 * @property clob $detalle_plantilla
 * @property string $observaciones
 * @property CBR_FACILIDAD_PAGO $CBR_FACILIDAD_PAGO
 * @property Doctrine_Collection $CBR_OFICIO_MEDIDA_CAUTELAR
 * 
 * @method integer             getIdIncumpleFp()           Returns the current record's "id_medida_cautelar" value
 * @method integer             getIdFacilidadPago()        Returns the current record's "id_facilidad_pago" value
 * @method integer             getNoResolucion()           Returns the current record's "no_resolucion" value
 * @method timestamp           getFechaResol()             Returns the current record's "fecha_resol" value
 * @method clob                getDetallePlantilla()       Returns the current record's "detalle_plantilla" value
 * @method string              getObservaciones()          Returns the current record's "observaciones" value
 * @method CBR_FACILIDAD_PAGO  getCBRFACILIDADPAGO()       Returns the current record's "CBR_FACILIDAD_PAGO" value
 * @method Doctrine_Collection getCBROFICIOINCUMPLEFP()    Returns the current record's "CBR_OFICIO_MEDIDA_CAUTELAR" collection
 * @method CBR_MEDIDA_CAUTELAR     setIdIncumpleFp()           Sets the current record's "id_medida_cautelar" value
 * @method CBR_MEDIDA_CAUTELAR     setIdFacilidadPago()        Sets the current record's "id_facilidad_pago" value
 * @method CBR_MEDIDA_CAUTELAR     setNoResolucion()           Sets the current record's "no_resolucion" value
 * @method CBR_MEDIDA_CAUTELAR     setFechaResol()             Sets the current record's "fecha_resol" value
 * @method CBR_MEDIDA_CAUTELAR     setDetallePlantilla()       Sets the current record's "detalle_plantilla" value
 * @method CBR_MEDIDA_CAUTELAR     setObservaciones()          Sets the current record's "observaciones" value
 * @method CBR_MEDIDA_CAUTELAR     setCBRFACILIDADPAGO()       Sets the current record's "CBR_FACILIDAD_PAGO" value
 * @method CBR_MEDIDA_CAUTELAR     setCBROFICIOINCUMPLEFP()    Sets the current record's "CBR_OFICIO_MEDIDA_CAUTELAR" 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_MEDIDA_CAUTELAR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_MEDIDA_CAUTELAR');
        $this->hasColumn('id_medida_cautelar', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_remision_titulo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_auto', 'string', 150, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('fecha_auto', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('detalle_plantilla', 'clob', 4000, array(
             'notnull' => true,
             'type' => 'clob',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('adjunto', 'string', 150, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('id_bien_embargado', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
         $this->hasColumn('id_tipo_documento', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
         $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,
             ));
          $this->hasColumn('fecha_aprueba', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
            $this->hasColumn('usuario_aprueba', 'integer',20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('CBR_OFICIO_MEDIDA_CAUTELAR', array(
             'local' => 'id_medida_cautelar',
             'foreign' => 'id_medida_cautelar'));
    }
}