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

/**
 * BaseCBR_FACILIDAD_PAGO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_facilidad_pago
 * @property integer $id_proceso_coactivo
 * @property timestamp $fecha_registro
 * @property Doctrine_Collection $CBR_PLANIFICA_FP
 * @property Doctrine_Collection $CBR_OFICIO_FACILIDAD
 * @property Doctrine_Collection $CBR_INCUMPLE_FP
 * @property Doctrine_Collection $CBR_APRUEBA_FP
 * 
 * @method integer             getIdFacilidadPago()      Returns the current record's "id_facilidad_pago" value
 * @method integer             getIdProcesoCoactivo()    Returns the current record's "id_proceso_coactivo" value
 * @method timestamp           getFechaRegistro()        Returns the current record's "fecha_registro" value
 * @method Doctrine_Collection getCBRPLANIFICAFP()       Returns the current record's "CBR_PLANIFICA_FP" collection
 * @method Doctrine_Collection getCBROFICIOFACILIDAD()   Returns the current record's "CBR_OFICIO_FACILIDAD" collection
 * @method Doctrine_Collection getCBRINCUMPLEFP()        Returns the current record's "CBR_INCUMPLE_FP" collection
 * @method Doctrine_Collection getCBRAPRUEBAFP()         Returns the current record's "CBR_APRUEBA_FP" collection
 * @method CBR_FACILIDAD_PAGO  setIdFacilidadPago()      Sets the current record's "id_facilidad_pago" value
 * @method CBR_FACILIDAD_PAGO  setIdProcesoCoactivo()    Sets the current record's "id_proceso_coactivo" value
 * @method CBR_FACILIDAD_PAGO  setFechaRegistro()        Sets the current record's "fecha_registro" value
 * @method CBR_FACILIDAD_PAGO  setCBRPLANIFICAFP()       Sets the current record's "CBR_PLANIFICA_FP" collection
 * @method CBR_FACILIDAD_PAGO  setCBROFICIOFACILIDAD()   Sets the current record's "CBR_OFICIO_FACILIDAD" collection
 * @method CBR_FACILIDAD_PAGO  setCBRINCUMPLEFP()        Sets the current record's "CBR_INCUMPLE_FP" collection
 * @method CBR_FACILIDAD_PAGO  setCBRAPRUEBAFP()         Sets the current record's "CBR_APRUEBA_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_FACILIDAD_PAGO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_FACILIDAD_PAGO');
        $this->hasColumn('id_facilidad_pago', 'integer', 20, array(
             'notnull' => false,
             '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('fecha_registro', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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

        $this->hasMany('CBR_OFICIO_FACILIDAD', array(
             'local' => 'id_facilidad_pago',
             'foreign' => 'id_facilidad_pago'));

        $this->hasMany('CBR_INCUMPLE_FP', array(
             'local' => 'id_facilidad_pago',
             'foreign' => 'id_facilidad_pago'));

        $this->hasMany('CBR_APRUEBA_FP', array(
             'local' => 'id_facilidad_pago',
             'foreign' => 'id_facilidad_pago'));
    }
}