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

/**
 * BaseCBR_SECUESTRO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_secuestro
 * @property integer $id_proceso_coactivo
 * @property integer $no_auto
 * @property timestamp $fecha
 * @property timestamp $fecha_diligencia
 * @property clob $detalle_plantilla
 * @property string $observaciones
 * @property string $adjunto
 * @property CBR_PROCESO_COACTIVO $CBR_PROCESO_COACTIVO
 * @property Doctrine_Collection $CBR_REMATE
 * @property Doctrine_Collection $CBR_OFICIO_SECUESTRO
 * @property Doctrine_Collection $CBR_AVALUO
 * @property Doctrine_Collection $CBR_ADJUDICACION
 * 
 * @method integer              getIdSecuestro()          Returns the current record's "id_secuestro" value
 * @method integer              getIdProcesoCoactivo()    Returns the current record's "id_proceso_coactivo" value
 * @method integer              getNoAuto()               Returns the current record's "no_auto" value
 * @method timestamp            getFecha()                Returns the current record's "fecha" value
 * @method timestamp            getFechaDiligencia()      Returns the current record's "fecha_diligencia" value
 * @method clob                 getDetallePlantilla()     Returns the current record's "detalle_plantilla" value
 * @method string               getObservaciones()        Returns the current record's "observaciones" value
 * @method string               getAdjunto()              Returns the current record's "adjunto" value
 * @method CBR_PROCESO_COACTIVO getCBRPROCESOCOACTIVO()   Returns the current record's "CBR_PROCESO_COACTIVO" value
 * @method Doctrine_Collection  getCBRREMATE()            Returns the current record's "CBR_REMATE" collection
 * @method Doctrine_Collection  getCBROFICIOSECUESTRO()   Returns the current record's "CBR_OFICIO_SECUESTRO" collection
 * @method Doctrine_Collection  getCBRAVALUO()            Returns the current record's "CBR_AVALUO" collection
 * @method Doctrine_Collection  getCBRADJUDICACION()      Returns the current record's "CBR_ADJUDICACION" collection
 * @method CBR_SECUESTRO        setIdSecuestro()          Sets the current record's "id_secuestro" value
 * @method CBR_SECUESTRO        setIdProcesoCoactivo()    Sets the current record's "id_proceso_coactivo" value
 * @method CBR_SECUESTRO        setNoAuto()               Sets the current record's "no_auto" value
 * @method CBR_SECUESTRO        setFecha()                Sets the current record's "fecha" value
 * @method CBR_SECUESTRO        setFechaDiligencia()      Sets the current record's "fecha_diligencia" value
 * @method CBR_SECUESTRO        setDetallePlantilla()     Sets the current record's "detalle_plantilla" value
 * @method CBR_SECUESTRO        setObservaciones()        Sets the current record's "observaciones" value
 * @method CBR_SECUESTRO        setAdjunto()              Sets the current record's "adjunto" value
 * @method CBR_SECUESTRO        setCBRPROCESOCOACTIVO()   Sets the current record's "CBR_PROCESO_COACTIVO" value
 * @method CBR_SECUESTRO        setCBRREMATE()            Sets the current record's "CBR_REMATE" collection
 * @method CBR_SECUESTRO        setCBROFICIOSECUESTRO()   Sets the current record's "CBR_OFICIO_SECUESTRO" collection
 * @method CBR_SECUESTRO        setCBRAVALUO()            Sets the current record's "CBR_AVALUO" collection
 * @method CBR_SECUESTRO        setCBRADJUDICACION()      Sets the current record's "CBR_ADJUDICACION" 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_SECUESTRO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_SECUESTRO');
        $this->hasColumn('id_secuestro', '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('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('fecha_diligencia', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('detalle_plantilla', 'clob', 4000, array(
             'notnull' => false,
             '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' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
    }

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

        $this->hasMany('CBR_REMATE', array(
             'local' => 'id_secuestro',
             'foreign' => 'id_secuestro'));

        $this->hasMany('CBR_OFICIO_SECUESTRO', array(
             'local' => 'id_secuestro',
             'foreign' => 'id_secuestro'));

        $this->hasMany('CBR_AVALUO', array(
             'local' => 'id_secuestro',
             'foreign' => 'id_secuestro'));

        $this->hasMany('CBR_ADJUDICACION', array(
             'local' => 'id_secuestro',
             'foreign' => 'id_secuestro'));
    }
}