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

/**
 * BaseFORMACION_IDIOMAS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_for_idi
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property string $lee
 * @property string $habla
 * @property string $escribe
 * @property integer $id_idioma
 * @property string $certificado
 * @property IDIOMAS $IDIOMAS
 * @property TIPO_DOCUMENTO $TIPO_DOCUMENTO
 * 
 * @method integer           getIdForIdi()       Returns the current record's "id_for_idi" value
 * @method integer           getIdTipoDoc()      Returns the current record's "id_tipo_doc" value
 * @method string            getNumDoc()         Returns the current record's "num_doc" value
 * @method string            getLee()            Returns the current record's "lee" value
 * @method string            getHabla()          Returns the current record's "habla" value
 * @method string            getEscribe()        Returns the current record's "escribe" value
 * @method integer           getIdIdioma()       Returns the current record's "id_idioma" value
 * @method string            getCertificado()    Returns the current record's "certificado" value
 * @method IDIOMAS           getIDIOMAS()        Returns the current record's "IDIOMAS" value
 * @method TIPO_DOCUMENTO    getTIPODOCUMENTO()  Returns the current record's "TIPO_DOCUMENTO" value
 * @method FORMACION_IDIOMAS setIdForIdi()       Sets the current record's "id_for_idi" value
 * @method FORMACION_IDIOMAS setIdTipoDoc()      Sets the current record's "id_tipo_doc" value
 * @method FORMACION_IDIOMAS setNumDoc()         Sets the current record's "num_doc" value
 * @method FORMACION_IDIOMAS setLee()            Sets the current record's "lee" value
 * @method FORMACION_IDIOMAS setHabla()          Sets the current record's "habla" value
 * @method FORMACION_IDIOMAS setEscribe()        Sets the current record's "escribe" value
 * @method FORMACION_IDIOMAS setIdIdioma()       Sets the current record's "id_idioma" value
 * @method FORMACION_IDIOMAS setCertificado()    Sets the current record's "certificado" value
 * @method FORMACION_IDIOMAS setIDIOMAS()        Sets the current record's "IDIOMAS" value
 * @method FORMACION_IDIOMAS setTIPODOCUMENTO()  Sets the current record's "TIPO_DOCUMENTO" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseFORMACION_IDIOMAS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('FORMACION_IDIOMAS');
        $this->hasColumn('id_for_idi', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('lee', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('habla', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('escribe', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_idioma', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('certificado', 'string', 2000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2000,
             ));
    }

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

        $this->hasOne('TIPO_DOCUMENTO', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'id_tipo_doc'));
    }
}