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

/**
 * BaseTERCEROS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $nitocc
 * @property string $tipter
 * @property string $razsoc
 * @property string $ciudad
 * @property string $telefo
 * @property string $telfax
 * @property string $direcc
 * @property integer $estado
 * @property string $email
 * @property integer $sueldo
 * @property string $cargo
 * @property string $codreg
 * @property integer $id_tipo_traba_contra
 * @property Doctrine_Collection $TARIFAS_DESTINO
 * @property Doctrine_Collection $DESTINOS_COMISIONADOS
 * @property Doctrine_Collection $COM_TIQUETE
 * @property Doctrine_Collection $COM_DESTINO
 * @property Doctrine_Collection $COM_COMISIONADO_OBJ
 * @property Doctrine_Collection $COM_COMISIONADO
 * @property Doctrine_Collection $COMISIONADOS_PLANTA
 * @property Doctrine_Collection $COMISIONADOS_OBJS
 * @property Doctrine_Collection $COMISIONADOS_CONTRATO
 * 
 * @method integer             getNitocc()                Returns the current record's "nitocc" value
 * @method string              getTipter()                Returns the current record's "tipter" value
 * @method string              getRazsoc()                Returns the current record's "razsoc" value
 * @method string              getCiudad()                Returns the current record's "ciudad" value
 * @method string              getTelefo()                Returns the current record's "telefo" value
 * @method string              getTelfax()                Returns the current record's "telfax" value
 * @method string              getDirecc()                Returns the current record's "direcc" value
 * @method integer             getEstado()                Returns the current record's "estado" value
 * @method string              getEmail()                 Returns the current record's "email" value
 * @method integer             getSueldo()                Returns the current record's "sueldo" value
 * @method string              getCargo()                 Returns the current record's "cargo" value
 * @method string              getCodreg()                Returns the current record's "codreg" value
 * @method integer             getIdTipoTrabaContra()     Returns the current record's "id_tipo_traba_contra" value
 * @method Doctrine_Collection getTARIFASDESTINO()        Returns the current record's "TARIFAS_DESTINO" collection
 * @method Doctrine_Collection getDESTINOSCOMISIONADOS()  Returns the current record's "DESTINOS_COMISIONADOS" collection
 * @method Doctrine_Collection getCOMTIQUETE()            Returns the current record's "COM_TIQUETE" collection
 * @method Doctrine_Collection getCOMDESTINO()            Returns the current record's "COM_DESTINO" collection
 * @method Doctrine_Collection getCOMCOMISIONADOOBJ()     Returns the current record's "COM_COMISIONADO_OBJ" collection
 * @method Doctrine_Collection getCOMCOMISIONADO()        Returns the current record's "COM_COMISIONADO" collection
 * @method Doctrine_Collection getCOMISIONADOSPLANTA()    Returns the current record's "COMISIONADOS_PLANTA" collection
 * @method Doctrine_Collection getCOMISIONADOSOBJS()      Returns the current record's "COMISIONADOS_OBJS" collection
 * @method Doctrine_Collection getCOMISIONADOSCONTRATO()  Returns the current record's "COMISIONADOS_CONTRATO" collection
 * @method TERCEROS            setNitocc()                Sets the current record's "nitocc" value
 * @method TERCEROS            setTipter()                Sets the current record's "tipter" value
 * @method TERCEROS            setRazsoc()                Sets the current record's "razsoc" value
 * @method TERCEROS            setCiudad()                Sets the current record's "ciudad" value
 * @method TERCEROS            setTelefo()                Sets the current record's "telefo" value
 * @method TERCEROS            setTelfax()                Sets the current record's "telfax" value
 * @method TERCEROS            setDirecc()                Sets the current record's "direcc" value
 * @method TERCEROS            setEstado()                Sets the current record's "estado" value
 * @method TERCEROS            setEmail()                 Sets the current record's "email" value
 * @method TERCEROS            setSueldo()                Sets the current record's "sueldo" value
 * @method TERCEROS            setCargo()                 Sets the current record's "cargo" value
 * @method TERCEROS            setCodreg()                Sets the current record's "codreg" value
 * @method TERCEROS            setIdTipoTrabaContra()     Sets the current record's "id_tipo_traba_contra" value
 * @method TERCEROS            setTARIFASDESTINO()        Sets the current record's "TARIFAS_DESTINO" collection
 * @method TERCEROS            setDESTINOSCOMISIONADOS()  Sets the current record's "DESTINOS_COMISIONADOS" collection
 * @method TERCEROS            setCOMTIQUETE()            Sets the current record's "COM_TIQUETE" collection
 * @method TERCEROS            setCOMDESTINO()            Sets the current record's "COM_DESTINO" collection
 * @method TERCEROS            setCOMCOMISIONADOOBJ()     Sets the current record's "COM_COMISIONADO_OBJ" collection
 * @method TERCEROS            setCOMCOMISIONADO()        Sets the current record's "COM_COMISIONADO" collection
 * @method TERCEROS            setCOMISIONADOSPLANTA()    Sets the current record's "COMISIONADOS_PLANTA" collection
 * @method TERCEROS            setCOMISIONADOSOBJS()      Sets the current record's "COMISIONADOS_OBJS" collection
 * @method TERCEROS            setCOMISIONADOSCONTRATO()  Sets the current record's "COMISIONADOS_CONTRATO" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOM_TERCERO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_TERCERO');
        $this->hasColumn('id_tercero', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('tipter', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('nombre', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('email', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('sueldo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('telefono', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('celular', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('banco', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tipo_cuenta', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('numero_cuenta', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('cargo', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('numero_contrato', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('aplica_iva', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('porcentaje_iva', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_nacimiento', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('aplica_ica', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('direccion', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        
        
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}