<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('TERCEROS', '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 $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 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            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    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTERCEROS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TERCEROS');
        $this->hasColumn('nitocc', '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('razsoc', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('ciudad', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('telefo', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('telfax', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('direcc', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $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('cargo', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('codreg', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_traba_contra', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasMany('DESTINOS_COMISIONADOS', array(
             'local' => 'nitocc',
             'foreign' => 'nitocc'));

        $this->hasMany('COMISIONADOS_PLANTA', array(
             'local' => 'nitocc',
             'foreign' => 'nitocc'));

        $this->hasMany('COMISIONADOS_OBJS', array(
             'local' => 'nitocc',
             'foreign' => 'nitocc'));

        $this->hasMany('COMISIONADOS_CONTRATO', array(
             'local' => 'nitocc',
             'foreign' => 'nitocc'));
    }
}