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

/**
 * BaseACTIVIDAD_FORMACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_formacion
 * @property string $vigencia
 * @property integer $id_necesidad
 * @property integer $id_componente
 * @property string $nombre
 * @property integer $numero_personas
 * @property integer $intensidad_horaria
 * @property timestamp $fecha_inicio
 * @property timestamp $fecha_fin
 * @property string $presupuesto
 * @property integer $id_doc_responsable
 * @property string $num_doc_responsable
 * @property integer $id_doc_facilitador
 * @property string $num_doc_facilitador
 * @property string $recursos
 * @property string $todos_funcionarios
 * @property integer $id_cia
 * @property integer $id_cen_op
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @property COMPANIA $COMPANIA
 * @property COMPONENTE $COMPONENTE
 * 
 * @method integer             getIdFormacion()         Returns the current record's "id_formacion" value
 * @method string              getVigencia()            Returns the current record's "vigencia" value
 * @method integer             getIdNecesidad()         Returns the current record's "id_necesidad" value
 * @method integer             getIdComponente()        Returns the current record's "id_componente" value
 * @method string              getNombre()              Returns the current record's "nombre" value
 * @method integer             getNumeroPersonas()      Returns the current record's "numero_personas" value
 * @method integer             getIntensidadHoraria()   Returns the current record's "intensidad_horaria" value
 * @method timestamp           getFechaInicio()         Returns the current record's "fecha_inicio" value
 * @method timestamp           getFechaFin()            Returns the current record's "fecha_fin" value
 * @method string              getPresupuesto()         Returns the current record's "presupuesto" value
 * @method integer             getIdDocResponsable()    Returns the current record's "id_doc_responsable" value
 * @method string              getNumDocResponsable()   Returns the current record's "num_doc_responsable" value
 * @method integer             getIdDocFacilitador()    Returns the current record's "id_doc_facilitador" value
 * @method string              getNumDocFacilitador()   Returns the current record's "num_doc_facilitador" value
 * @method string              getRecursos()            Returns the current record's "recursos" value
 * @method string              getTodosFuncionarios()   Returns the current record's "todos_funcionarios" value
 * @method integer             getIdCia()               Returns the current record's "id_cia" value
 * @method integer             getIdCenOp()             Returns the current record's "id_cen_op" value
 * @method CENTRO_OPERACION    getCENTROOPERACION()     Returns the current record's "CENTRO_OPERACION" value
 * @method COMPANIA            getCOMPANIA()            Returns the current record's "COMPANIA" value
 * @method COMPONENTE          getCOMPONENTE()          Returns the current record's "COMPONENTE" value
 * @method ACTIVIDAD_FORMACION setIdFormacion()         Sets the current record's "id_formacion" value
 * @method ACTIVIDAD_FORMACION setVigencia()            Sets the current record's "vigencia" value
 * @method ACTIVIDAD_FORMACION setIdNecesidad()         Sets the current record's "id_necesidad" value
 * @method ACTIVIDAD_FORMACION setIdComponente()        Sets the current record's "id_componente" value
 * @method ACTIVIDAD_FORMACION setNombre()              Sets the current record's "nombre" value
 * @method ACTIVIDAD_FORMACION setNumeroPersonas()      Sets the current record's "numero_personas" value
 * @method ACTIVIDAD_FORMACION setIntensidadHoraria()   Sets the current record's "intensidad_horaria" value
 * @method ACTIVIDAD_FORMACION setFechaInicio()         Sets the current record's "fecha_inicio" value
 * @method ACTIVIDAD_FORMACION setFechaFin()            Sets the current record's "fecha_fin" value
 * @method ACTIVIDAD_FORMACION setPresupuesto()         Sets the current record's "presupuesto" value
 * @method ACTIVIDAD_FORMACION setIdDocResponsable()    Sets the current record's "id_doc_responsable" value
 * @method ACTIVIDAD_FORMACION setNumDocResponsable()   Sets the current record's "num_doc_responsable" value
 * @method ACTIVIDAD_FORMACION setIdDocFacilitador()    Sets the current record's "id_doc_facilitador" value
 * @method ACTIVIDAD_FORMACION setNumDocFacilitador()   Sets the current record's "num_doc_facilitador" value
 * @method ACTIVIDAD_FORMACION setRecursos()            Sets the current record's "recursos" value
 * @method ACTIVIDAD_FORMACION setTodosFuncionarios()   Sets the current record's "todos_funcionarios" value
 * @method ACTIVIDAD_FORMACION setIdCia()               Sets the current record's "id_cia" value
 * @method ACTIVIDAD_FORMACION setIdCenOp()             Sets the current record's "id_cen_op" value
 * @method ACTIVIDAD_FORMACION setCENTROOPERACION()     Sets the current record's "CENTRO_OPERACION" value
 * @method ACTIVIDAD_FORMACION setCOMPANIA()            Sets the current record's "COMPANIA" value
 * @method ACTIVIDAD_FORMACION setCOMPONENTE()          Sets the current record's "COMPONENTE" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseACTIVIDAD_FORMACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ACTIVIDAD_FORMACION');
        $this->hasColumn('id_formacion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('id_necesidad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_componente', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('numero_personas', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('intensidad_horaria', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_inicio', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('presupuesto', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_doc_responsable', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc_responsable', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_doc_facilitador', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc_facilitador', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('recursos', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('todos_funcionarios', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_cia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cen_op', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('COMPANIA', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasOne('COMPONENTE', array(
             'local' => 'id_componente',
             'foreign' => 'id_componente'));
    }
}