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

/**
 * BaseINTERCER_DU
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_mt_ubi
 * @property integer $id_mae_ter
 * @property integer $id_loc_dir
 * @property string $web_site
 * @property string $mail
 * @property string $contacto
 * @property string $cargo_con
 * @property string $ap_aereo
 * @property string $mail_con
 * @property integer $id_pais
 * @property string $copdepto
 * @property string $ciudad
 * @property DEPARTAMENTOS $DEPARTAMENTOS
 * @property INTERCEROS $INTERCEROS
 * @property PAIS $PAIS
 * @property TS_LOC_DIR $TS_LOC_DIR
 * @property Doctrine_Collection $INTERCER_DU_DIR
 * 
 * @method integer             getIdMtUbi()         Returns the current record's "id_mt_ubi" value
 * @method integer             getIdMaeTer()        Returns the current record's "id_mae_ter" value
 * @method integer             getIdLocDir()        Returns the current record's "id_loc_dir" value
 * @method string              getWebSite()         Returns the current record's "web_site" value
 * @method string              getMail()            Returns the current record's "mail" value
 * @method string              getContacto()        Returns the current record's "contacto" value
 * @method string              getCargoCon()        Returns the current record's "cargo_con" value
 * @method string              getApAereo()         Returns the current record's "ap_aereo" value
 * @method string              getMailCon()         Returns the current record's "mail_con" value
 * @method integer             getIdPais()          Returns the current record's "id_pais" value
 * @method string              getCopdepto()        Returns the current record's "copdepto" value
 * @method string              getCiudad()          Returns the current record's "ciudad" value
 * @method DEPARTAMENTOS       getDEPARTAMENTOS()   Returns the current record's "DEPARTAMENTOS" value
 * @method INTERCEROS          getINTERCEROS()      Returns the current record's "INTERCEROS" value
 * @method PAIS                getPAIS()            Returns the current record's "PAIS" value
 * @method TS_LOC_DIR          getTSLOCDIR()        Returns the current record's "TS_LOC_DIR" value
 * @method Doctrine_Collection getINTERCERDUDIR()   Returns the current record's "INTERCER_DU_DIR" collection
 * @method INTERCER_DU         setIdMtUbi()         Sets the current record's "id_mt_ubi" value
 * @method INTERCER_DU         setIdMaeTer()        Sets the current record's "id_mae_ter" value
 * @method INTERCER_DU         setIdLocDir()        Sets the current record's "id_loc_dir" value
 * @method INTERCER_DU         setWebSite()         Sets the current record's "web_site" value
 * @method INTERCER_DU         setMail()            Sets the current record's "mail" value
 * @method INTERCER_DU         setContacto()        Sets the current record's "contacto" value
 * @method INTERCER_DU         setCargoCon()        Sets the current record's "cargo_con" value
 * @method INTERCER_DU         setApAereo()         Sets the current record's "ap_aereo" value
 * @method INTERCER_DU         setMailCon()         Sets the current record's "mail_con" value
 * @method INTERCER_DU         setIdPais()          Sets the current record's "id_pais" value
 * @method INTERCER_DU         setCopdepto()        Sets the current record's "copdepto" value
 * @method INTERCER_DU         setCiudad()          Sets the current record's "ciudad" value
 * @method INTERCER_DU         setDEPARTAMENTOS()   Sets the current record's "DEPARTAMENTOS" value
 * @method INTERCER_DU         setINTERCEROS()      Sets the current record's "INTERCEROS" value
 * @method INTERCER_DU         setPAIS()            Sets the current record's "PAIS" value
 * @method INTERCER_DU         setTSLOCDIR()        Sets the current record's "TS_LOC_DIR" value
 * @method INTERCER_DU         setINTERCERDUDIR()   Sets the current record's "INTERCER_DU_DIR" 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 BaseINTERCER_DU extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('INTERCER_DU');
        $this->hasColumn('id_mt_ubi', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_loc_dir', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('web_site', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('mail', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('contacto', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('cargo_con', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('ap_aereo', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('mail_con', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('id_pais', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('copdepto', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ciudad', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('DEPARTAMENTOS', array(
             'local' => 'copdepto',
             'foreign' => 'coddepto'));

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

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

        $this->hasOne('TS_LOC_DIR', array(
             'local' => 'id_loc_dir',
             'foreign' => 'id_loc_dir'));

        $this->hasMany('INTERCER_DU_DIR', array(
             'local' => 'id_mt_ubi',
             'foreign' => 'id_mt_ubi'));
    }
}