<?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 DATOS_FUNCIONARIO $DATOS_FUNCIONARIO
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_2
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_3
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_4
 * @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 DATOS_FUNCIONARIO getDATOSFUNCIONARIO()    Returns the current record's "DATOS_FUNCIONARIO" value
 * @method DATOS_FUNCIONARIO getDATOSFUNCIONARIO2()   Returns the current record's "DATOS_FUNCIONARIO_2" value
 * @method DATOS_FUNCIONARIO getDATOSFUNCIONARIO3()   Returns the current record's "DATOS_FUNCIONARIO_3" value
 * @method DATOS_FUNCIONARIO getDATOSFUNCIONARIO4()   Returns the current record's "DATOS_FUNCIONARIO_4" 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 setDATOSFUNCIONARIO()    Sets the current record's "DATOS_FUNCIONARIO" value
 * @method FORMACION_IDIOMAS setDATOSFUNCIONARIO2()   Sets the current record's "DATOS_FUNCIONARIO_2" value
 * @method FORMACION_IDIOMAS setDATOSFUNCIONARIO3()   Sets the current record's "DATOS_FUNCIONARIO_3" value
 * @method FORMACION_IDIOMAS setDATOSFUNCIONARIO4()   Sets the current record's "DATOS_FUNCIONARIO_4" 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    cartera
 * @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' => true,
             '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('DATOS_FUNCIONARIO', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'id_tipo_doc'));

        $this->hasOne('DATOS_FUNCIONARIO as DATOS_FUNCIONARIO_2', array(
             'local' => 'num_doc',
             'foreign' => 'id_tipo_doc'));

        $this->hasOne('DATOS_FUNCIONARIO as DATOS_FUNCIONARIO_3', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'num_doc'));

        $this->hasOne('DATOS_FUNCIONARIO as DATOS_FUNCIONARIO_4', array(
             'local' => 'num_doc',
             'foreign' => 'num_doc'));

        $this->hasOne('IDIOMAS', array(
             'local' => 'id_idioma',
             'foreign' => 'id_idioma'));

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