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

/**
 * BaseCBR_SUSPENSION_PROC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_suspension_proc
 * @property integer $id_proceso_coactivo
 * @property integer $id_causal_suspension
 * @property integer $no_resolucion
 * @property timestamp $fecha_resol
 * @property string $adjunto
 * @property string $observaciones
 * @property CBR_CAUSAL_SUSPENSION $CBR_CAUSAL_SUSPENSION
 * @property CBR_PROCESO_COACTIVO $CBR_PROCESO_COACTIVO
 * 
 * @method integer               getIdSuspensionProc()      Returns the current record's "id_suspension_proc" value
 * @method integer               getIdProcesoCoactivo()     Returns the current record's "id_proceso_coactivo" value
 * @method integer               getIdCausalSuspension()    Returns the current record's "id_causal_suspension" value
 * @method integer               getNoResolucion()          Returns the current record's "no_resolucion" value
 * @method timestamp             getFechaResol()            Returns the current record's "fecha_resol" value
 * @method string                getAdjunto()               Returns the current record's "adjunto" value
 * @method string                getObservaciones()         Returns the current record's "observaciones" value
 * @method CBR_CAUSAL_SUSPENSION getCBRCAUSALSUSPENSION()   Returns the current record's "CBR_CAUSAL_SUSPENSION" value
 * @method CBR_PROCESO_COACTIVO  getCBRPROCESOCOACTIVO()    Returns the current record's "CBR_PROCESO_COACTIVO" value
 * @method CBR_SUSPENSION_PROC   setIdSuspensionProc()      Sets the current record's "id_suspension_proc" value
 * @method CBR_SUSPENSION_PROC   setIdProcesoCoactivo()     Sets the current record's "id_proceso_coactivo" value
 * @method CBR_SUSPENSION_PROC   setIdCausalSuspension()    Sets the current record's "id_causal_suspension" value
 * @method CBR_SUSPENSION_PROC   setNoResolucion()          Sets the current record's "no_resolucion" value
 * @method CBR_SUSPENSION_PROC   setFechaResol()            Sets the current record's "fecha_resol" value
 * @method CBR_SUSPENSION_PROC   setAdjunto()               Sets the current record's "adjunto" value
 * @method CBR_SUSPENSION_PROC   setObservaciones()         Sets the current record's "observaciones" value
 * @method CBR_SUSPENSION_PROC   setCBRCAUSALSUSPENSION()   Sets the current record's "CBR_CAUSAL_SUSPENSION" value
 * @method CBR_SUSPENSION_PROC   setCBRPROCESOCOACTIVO()    Sets the current record's "CBR_PROCESO_COACTIVO" 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_SUSPENSION_PROC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_SUSPENSION_PROC');
        $this->hasColumn('id_suspension_proc', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_proceso_coactivo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_causal_suspension', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_resolucion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_resol', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('adjunto', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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

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