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

/**
 * BaseCBR_LEVANTA_MEDIDA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_levanta_medida
 * @property integer $id_medida_cautelar
 * @property integer $no_auto
 * @property timestamp $fecha_auto
 * @property clob $detalle_plantilla
 * @property string $observaciones
 * @property integer $id_motivo_levanta
 * @property string $adjunto
 * @property Doctrine_Collection $CBR_NOTIFICA_MEDIDA
 * 
 * @method integer             getIdLevantaMedida()     Returns the current record's "id_levanta_medida" value
 * @method integer             getIdMedidaCautelar()    Returns the current record's "id_medida_cautelar" value
 * @method integer             getNoAuto()              Returns the current record's "no_auto" value
 * @method timestamp           getFechaAuto()           Returns the current record's "fecha_auto" value
 * @method clob                getDetallePlantilla()    Returns the current record's "detalle_plantilla" value
 * @method string              getObservaciones()       Returns the current record's "observaciones" value
 * @method integer             getIdMotivoLevanta()     Returns the current record's "id_motivo_levanta" value
 * @method string              getAdjunto()             Returns the current record's "adjunto" value
 * @method Doctrine_Collection getCBRNOTIFICAMEDIDA()   Returns the current record's "CBR_NOTIFICA_MEDIDA" collection
 * @method CBR_LEVANTA_MEDIDA  setIdLevantaMedida()     Sets the current record's "id_levanta_medida" value
 * @method CBR_LEVANTA_MEDIDA  setIdMedidaCautelar()    Sets the current record's "id_medida_cautelar" value
 * @method CBR_LEVANTA_MEDIDA  setNoAuto()              Sets the current record's "no_auto" value
 * @method CBR_LEVANTA_MEDIDA  setFechaAuto()           Sets the current record's "fecha_auto" value
 * @method CBR_LEVANTA_MEDIDA  setDetallePlantilla()    Sets the current record's "detalle_plantilla" value
 * @method CBR_LEVANTA_MEDIDA  setObservaciones()       Sets the current record's "observaciones" value
 * @method CBR_LEVANTA_MEDIDA  setIdMotivoLevanta()     Sets the current record's "id_motivo_levanta" value
 * @method CBR_LEVANTA_MEDIDA  setAdjunto()             Sets the current record's "adjunto" value
 * @method CBR_LEVANTA_MEDIDA  setCBRNOTIFICAMEDIDA()   Sets the current record's "CBR_NOTIFICA_MEDIDA" 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_LEVANTA_MEDIDA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_LEVANTA_MEDIDA');
        $this->hasColumn('id_levanta_medida', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_medida_cautelar', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_auto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_auto', 'timestamp', 7, array(
             'notnull' => false,
             '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' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_motivo_levanta', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('adjunto', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
    }

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