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

/**
 * BaseCBR_EMBARGO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_embargo
 * @property integer $id_proceso_coactivo
 * @property integer $id_bien_embargado
 * @property integer $no_auto
 * @property timestamp $fecha
 * @property clob $detalle_plantilla
 * @property string $observaciones
 * @property CBR_BIEN_EMBARGADO $CBR_BIEN_EMBARGADO
 * @property CBR_PROCESO_COACTIVO $CBR_PROCESO_COACTIVO
 * @property Doctrine_Collection $CBR_OFICIO_EMBARGO
 * 
 * @method integer              getIdEmbargo()            Returns the current record's "id_embargo" value
 * @method integer              getIdProcesoCoactivo()    Returns the current record's "id_proceso_coactivo" value
 * @method integer              getIdBienEmbargado()      Returns the current record's "id_bien_embargado" value
 * @method integer              getNoAuto()               Returns the current record's "no_auto" value
 * @method timestamp            getFecha()                Returns the current record's "fecha" value
 * @method clob                 getDetallePlantilla()     Returns the current record's "detalle_plantilla" value
 * @method string               getObservaciones()        Returns the current record's "observaciones" value
 * @method CBR_BIEN_EMBARGADO   getCBRBIENEMBARGADO()     Returns the current record's "CBR_BIEN_EMBARGADO" value
 * @method CBR_PROCESO_COACTIVO getCBRPROCESOCOACTIVO()   Returns the current record's "CBR_PROCESO_COACTIVO" value
 * @method Doctrine_Collection  getCBROFICIOEMBARGO()     Returns the current record's "CBR_OFICIO_EMBARGO" collection
 * @method CBR_EMBARGO          setIdEmbargo()            Sets the current record's "id_embargo" value
 * @method CBR_EMBARGO          setIdProcesoCoactivo()    Sets the current record's "id_proceso_coactivo" value
 * @method CBR_EMBARGO          setIdBienEmbargado()      Sets the current record's "id_bien_embargado" value
 * @method CBR_EMBARGO          setNoAuto()               Sets the current record's "no_auto" value
 * @method CBR_EMBARGO          setFecha()                Sets the current record's "fecha" value
 * @method CBR_EMBARGO          setDetallePlantilla()     Sets the current record's "detalle_plantilla" value
 * @method CBR_EMBARGO          setObservaciones()        Sets the current record's "observaciones" value
 * @method CBR_EMBARGO          setCBRBIENEMBARGADO()     Sets the current record's "CBR_BIEN_EMBARGADO" value
 * @method CBR_EMBARGO          setCBRPROCESOCOACTIVO()   Sets the current record's "CBR_PROCESO_COACTIVO" value
 * @method CBR_EMBARGO          setCBROFICIOEMBARGO()     Sets the current record's "CBR_OFICIO_EMBARGO" 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_EMBARGO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_EMBARGO');
        $this->hasColumn('id_embargo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_proceso_coactivo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_bien_embargado', 'integer', 20, array(
             'notnull' => false,
             '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', '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,
             ));
    }

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

        $this->hasOne('CBR_PROCESO_COACTIVO', array(
             'local' => 'id_proceso_coactivo',
             'foreign' => 'id_proceso_coactivo'));

        $this->hasMany('CBR_OFICIO_EMBARGO', array(
             'local' => 'id_embargo',
             'foreign' => 'id_embargo'));
    }
}