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

/**
 * BasePAIS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $descripcion
 * @property integer $id_pais
 * @property Doctrine_Collection $INTERCER_DU_DIR
 * @property Doctrine_Collection $INTERCER_DU
 * @property Doctrine_Collection $FORMACION_SUPERIOR
 * @property Doctrine_Collection $EXPERIENCIA_LABORAL
 * @property Doctrine_Collection $EDUCACION_FORMAL
 * @property Doctrine_Collection $DEPARTAMENTO
 * @property Doctrine_Collection $DATOS_FUNCIONARIO
 * @property Doctrine_Collection $DATOS_FUNCIONARIO_6
 * @property Doctrine_Collection $DATOS_FAMILIAR
 * @property Doctrine_Collection $DATOS_COMPANIA
 * 
 * @method string              getDescripcion()         Returns the current record's "descripcion" value
 * @method integer             getIdPais()              Returns the current record's "id_pais" value
 * @method Doctrine_Collection getINTERCERDUDIR()       Returns the current record's "INTERCER_DU_DIR" collection
 * @method Doctrine_Collection getINTERCERDU()          Returns the current record's "INTERCER_DU" collection
 * @method Doctrine_Collection getFORMACIONSUPERIOR()   Returns the current record's "FORMACION_SUPERIOR" collection
 * @method Doctrine_Collection getEXPERIENCIALABORAL()  Returns the current record's "EXPERIENCIA_LABORAL" collection
 * @method Doctrine_Collection getEDUCACIONFORMAL()     Returns the current record's "EDUCACION_FORMAL" collection
 * @method Doctrine_Collection getDEPARTAMENTO()        Returns the current record's "DEPARTAMENTO" collection
 * @method Doctrine_Collection getDATOSFUNCIONARIO()    Returns the current record's "DATOS_FUNCIONARIO" collection
 * @method Doctrine_Collection getDATOSFUNCIONARIO6()   Returns the current record's "DATOS_FUNCIONARIO_6" collection
 * @method Doctrine_Collection getDATOSFAMILIAR()       Returns the current record's "DATOS_FAMILIAR" collection
 * @method Doctrine_Collection getDATOSCOMPANIA()       Returns the current record's "DATOS_COMPANIA" collection
 * @method PAIS                setDescripcion()         Sets the current record's "descripcion" value
 * @method PAIS                setIdPais()              Sets the current record's "id_pais" value
 * @method PAIS                setINTERCERDUDIR()       Sets the current record's "INTERCER_DU_DIR" collection
 * @method PAIS                setINTERCERDU()          Sets the current record's "INTERCER_DU" collection
 * @method PAIS                setFORMACIONSUPERIOR()   Sets the current record's "FORMACION_SUPERIOR" collection
 * @method PAIS                setEXPERIENCIALABORAL()  Sets the current record's "EXPERIENCIA_LABORAL" collection
 * @method PAIS                setEDUCACIONFORMAL()     Sets the current record's "EDUCACION_FORMAL" collection
 * @method PAIS                setDEPARTAMENTO()        Sets the current record's "DEPARTAMENTO" collection
 * @method PAIS                setDATOSFUNCIONARIO()    Sets the current record's "DATOS_FUNCIONARIO" collection
 * @method PAIS                setDATOSFUNCIONARIO6()   Sets the current record's "DATOS_FUNCIONARIO_6" collection
 * @method PAIS                setDATOSFAMILIAR()       Sets the current record's "DATOS_FAMILIAR" collection
 * @method PAIS                setDATOSCOMPANIA()       Sets the current record's "DATOS_COMPANIA" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePAIS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PAIS');
        $this->hasColumn('descripcion', 'string', 2000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2000,
             ));
        $this->hasColumn('id_pais', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
    }

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

        $this->hasMany('INTERCER_DU', array(
             'local' => 'id_pais',
             'foreign' => 'id_pais'));

        $this->hasMany('FORMACION_SUPERIOR', array(
             'local' => 'id_pais',
             'foreign' => 'id_pais'));

        $this->hasMany('EXPERIENCIA_LABORAL', array(
             'local' => 'id_pais',
             'foreign' => 'id_pais'));

        $this->hasMany('EDUCACION_FORMAL', array(
             'local' => 'id_pais',
             'foreign' => 'pais'));

        $this->hasMany('DEPARTAMENTO', array(
             'local' => 'id_pais',
             'foreign' => 'id_pais'));

        $this->hasMany('DATOS_FUNCIONARIO', array(
             'local' => 'id_pais',
             'foreign' => 'id_pais_dir'));

        $this->hasMany('DATOS_FUNCIONARIO as DATOS_FUNCIONARIO_6', array(
             'local' => 'id_pais',
             'foreign' => 'id_pais_nace'));

        $this->hasMany('DATOS_FAMILIAR', array(
             'local' => 'id_pais',
             'foreign' => 'id_pais_nace'));

        $this->hasMany('DATOS_COMPANIA', array(
             'local' => 'id_pais',
             'foreign' => 'pais'));
    }
}