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

/**
 * BaseCBR_INCUMPLE_FP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_incumple_fp
 * @property integer $id_facilidad_pago
 * @property integer $no_resolucion
 * @property timestamp $fecha_resol
 * @property clob $detalle_plantilla
 * @property string $observaciones
 * @property string $adjunto
 * @property CBR_FACILIDAD_PAGO $CBR_FACILIDAD_PAGO
 * @property Doctrine_Collection $CBR_OFICIO_INCUMPLE_FP
 * 
 * @method integer             getIdIncumpleFp()           Returns the current record's "id_incumple_fp" 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 string              getAdjunto()                Returns the current record's "adjunto" 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_INCUMPLE_FP" collection
 * @method CBR_INCUMPLE_FP     setIdIncumpleFp()           Sets the current record's "id_incumple_fp" value
 * @method CBR_INCUMPLE_FP     setIdFacilidadPago()        Sets the current record's "id_facilidad_pago" value
 * @method CBR_INCUMPLE_FP     setNoResolucion()           Sets the current record's "no_resolucion" value
 * @method CBR_INCUMPLE_FP     setFechaResol()             Sets the current record's "fecha_resol" value
 * @method CBR_INCUMPLE_FP     setDetallePlantilla()       Sets the current record's "detalle_plantilla" value
 * @method CBR_INCUMPLE_FP     setObservaciones()          Sets the current record's "observaciones" value
 * @method CBR_INCUMPLE_FP     setAdjunto()                Sets the current record's "adjunto" value
 * @method CBR_INCUMPLE_FP     setCBRFACILIDADPAGO()       Sets the current record's "CBR_FACILIDAD_PAGO" value
 * @method CBR_INCUMPLE_FP     setCBROFICIOINCUMPLEFP()    Sets the current record's "CBR_OFICIO_INCUMPLE_FP" 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_INCUMPLE_FP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_INCUMPLE_FP');
        $this->hasColumn('id_incumple_fp', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_facilidad_pago', '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' => 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('adjunto', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
    }

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

        $this->hasMany('CBR_OFICIO_INCUMPLE_FP', array(
             'local' => 'id_incumple_fp',
             'foreign' => 'id_incumple_fp'));
    }
}