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

/**
 * BaseDATOS_COMPANIA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $nombre_empresa
 * @property string $abreviatura
 * @property string $direccion
 * @property string $telefono
 * @property string $nit
 * @property integer $pais
 * @property integer $ciudad
 * @property string $representante_legal
 * @property string $seccion_presupuestal
 * @property string $correo_electronico
 * @property string $pagina_web
 * @property string $fax
 * @property string $jefepresupuesto
 * @property string $correo_envio
 * @property integer $jefe_financiero
 * @property string $cargo_financiero
 * @property integer $aplica_reteiva
 * @property integer $jefe_cobro
 * @property CIUDAD $CIUDAD
 * @property INTERCEROS $INTERCEROS
 * @property PAIS $PAIS
 * 
 * @method integer        getId()                   Returns the current record's "id" value
 * @method string         getNombreEmpresa()        Returns the current record's "nombre_empresa" value
 * @method string         getAbreviatura()          Returns the current record's "abreviatura" value
 * @method string         getDireccion()            Returns the current record's "direccion" value
 * @method string         getTelefono()             Returns the current record's "telefono" value
 * @method string         getNit()                  Returns the current record's "nit" value
 * @method integer        getPais()                 Returns the current record's "pais" value
 * @method integer        getCiudad()               Returns the current record's "ciudad" value
 * @method string         getRepresentanteLegal()   Returns the current record's "representante_legal" value
 * @method string         getSeccionPresupuestal()  Returns the current record's "seccion_presupuestal" value
 * @method string         getCorreoElectronico()    Returns the current record's "correo_electronico" value
 * @method string         getPaginaWeb()            Returns the current record's "pagina_web" value
 * @method string         getFax()                  Returns the current record's "fax" value
 * @method string         getJefepresupuesto()      Returns the current record's "jefepresupuesto" value
 * @method string         getCorreoEnvio()          Returns the current record's "correo_envio" value
 * @method integer        getJefeFinanciero()       Returns the current record's "jefe_financiero" value
 * @method string         getCargoFinanciero()      Returns the current record's "cargo_financiero" value
 * @method integer        getAplicaReteiva()        Returns the current record's "aplica_reteiva" value
 * @method integer        getJefeCobro()            Returns the current record's "jefe_cobro" value
 * @method CIUDAD         getCIUDAD()               Returns the current record's "CIUDAD" value
 * @method INTERCEROS     getINTERCEROS()           Returns the current record's "INTERCEROS" value
 * @method PAIS           getPAIS()                 Returns the current record's "PAIS" value
 * @method DATOS_COMPANIA setId()                   Sets the current record's "id" value
 * @method DATOS_COMPANIA setNombreEmpresa()        Sets the current record's "nombre_empresa" value
 * @method DATOS_COMPANIA setAbreviatura()          Sets the current record's "abreviatura" value
 * @method DATOS_COMPANIA setDireccion()            Sets the current record's "direccion" value
 * @method DATOS_COMPANIA setTelefono()             Sets the current record's "telefono" value
 * @method DATOS_COMPANIA setNit()                  Sets the current record's "nit" value
 * @method DATOS_COMPANIA setPais()                 Sets the current record's "pais" value
 * @method DATOS_COMPANIA setCiudad()               Sets the current record's "ciudad" value
 * @method DATOS_COMPANIA setRepresentanteLegal()   Sets the current record's "representante_legal" value
 * @method DATOS_COMPANIA setSeccionPresupuestal()  Sets the current record's "seccion_presupuestal" value
 * @method DATOS_COMPANIA setCorreoElectronico()    Sets the current record's "correo_electronico" value
 * @method DATOS_COMPANIA setPaginaWeb()            Sets the current record's "pagina_web" value
 * @method DATOS_COMPANIA setFax()                  Sets the current record's "fax" value
 * @method DATOS_COMPANIA setJefepresupuesto()      Sets the current record's "jefepresupuesto" value
 * @method DATOS_COMPANIA setCorreoEnvio()          Sets the current record's "correo_envio" value
 * @method DATOS_COMPANIA setJefeFinanciero()       Sets the current record's "jefe_financiero" value
 * @method DATOS_COMPANIA setCargoFinanciero()      Sets the current record's "cargo_financiero" value
 * @method DATOS_COMPANIA setAplicaReteiva()        Sets the current record's "aplica_reteiva" value
 * @method DATOS_COMPANIA setJefeCobro()            Sets the current record's "jefe_cobro" value
 * @method DATOS_COMPANIA setCIUDAD()               Sets the current record's "CIUDAD" value
 * @method DATOS_COMPANIA setINTERCEROS()           Sets the current record's "INTERCEROS" value
 * @method DATOS_COMPANIA setPAIS()                 Sets the current record's "PAIS" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseDATOS_COMPANIA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('DATOS_COMPANIA');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('nombre_empresa', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('abreviatura', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('direccion', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('telefono', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nit', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('pais', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ciudad', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('representante_legal', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('seccion_presupuestal', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('correo_electronico', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('pagina_web', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('fax', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('jefepresupuesto', 'string', 120, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 120,
             ));
        $this->hasColumn('correo_envio', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('jefe_financiero', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('cargo_financiero', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'jefe_financiero',
             'foreign' => 'id_mae_ter'));

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