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

/**
 * BaseINTERCER_DU_DIR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_ubi_dir
 * @property integer $id_mt_ubi
 * @property integer $id_tip_dir
 * @property string $direccion
 * @property string $tel
 * @property string $fax
 * @property integer $id_pais
 * @property string $coddepto
 * @property string $ciudad
 * @property integer $estado
 * @property integer $principal
 * @property string $ciudad_dane
 * @property string $depto_dane
 * @property DEPARTAMENTOS $DEPARTAMENTOS
 * @property INTERCER_DU $INTERCER_DU
 * @property PAIS $PAIS
 * @property TS_TIP_DIR $TS_TIP_DIR
 * 
 * @method integer         getIdUbiDir()      Returns the current record's "id_ubi_dir" value
 * @method integer         getIdMtUbi()       Returns the current record's "id_mt_ubi" value
 * @method integer         getIdTipDir()      Returns the current record's "id_tip_dir" value
 * @method string          getDireccion()     Returns the current record's "direccion" value
 * @method string          getTel()           Returns the current record's "tel" value
 * @method string          getFax()           Returns the current record's "fax" value
 * @method integer         getIdPais()        Returns the current record's "id_pais" value
 * @method string          getCoddepto()      Returns the current record's "coddepto" value
 * @method string          getCiudad()        Returns the current record's "ciudad" value
 * @method integer         getEstado()        Returns the current record's "estado" value
 * @method integer         getPrincipal()     Returns the current record's "principal" value
 * @method string          getCiudadDane()    Returns the current record's "ciudad_dane" value
 * @method string          getDeptoDane()     Returns the current record's "depto_dane" value
 * @method DEPARTAMENTOS   getDEPARTAMENTOS() Returns the current record's "DEPARTAMENTOS" value
 * @method INTERCER_DU     getINTERCERDU()    Returns the current record's "INTERCER_DU" value
 * @method PAIS            getPAIS()          Returns the current record's "PAIS" value
 * @method TS_TIP_DIR      getTSTIPDIR()      Returns the current record's "TS_TIP_DIR" value
 * @method INTERCER_DU_DIR setIdUbiDir()      Sets the current record's "id_ubi_dir" value
 * @method INTERCER_DU_DIR setIdMtUbi()       Sets the current record's "id_mt_ubi" value
 * @method INTERCER_DU_DIR setIdTipDir()      Sets the current record's "id_tip_dir" value
 * @method INTERCER_DU_DIR setDireccion()     Sets the current record's "direccion" value
 * @method INTERCER_DU_DIR setTel()           Sets the current record's "tel" value
 * @method INTERCER_DU_DIR setFax()           Sets the current record's "fax" value
 * @method INTERCER_DU_DIR setIdPais()        Sets the current record's "id_pais" value
 * @method INTERCER_DU_DIR setCoddepto()      Sets the current record's "coddepto" value
 * @method INTERCER_DU_DIR setCiudad()        Sets the current record's "ciudad" value
 * @method INTERCER_DU_DIR setEstado()        Sets the current record's "estado" value
 * @method INTERCER_DU_DIR setPrincipal()     Sets the current record's "principal" value
 * @method INTERCER_DU_DIR setCiudadDane()    Sets the current record's "ciudad_dane" value
 * @method INTERCER_DU_DIR setDeptoDane()     Sets the current record's "depto_dane" value
 * @method INTERCER_DU_DIR setDEPARTAMENTOS() Sets the current record's "DEPARTAMENTOS" value
 * @method INTERCER_DU_DIR setINTERCERDU()    Sets the current record's "INTERCER_DU" value
 * @method INTERCER_DU_DIR setPAIS()          Sets the current record's "PAIS" value
 * @method INTERCER_DU_DIR setTSTIPDIR()      Sets the current record's "TS_TIP_DIR" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseINTERCER_DU_DIR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('INTERCER_DU_DIR');
        $this->hasColumn('id_ubi_dir', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_mt_ubi', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tip_dir', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('direccion', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('tel', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fax', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_pais', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('coddepto', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ciudad', 'string', 50, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('principal', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('ciudad_dane', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('depto_dane', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('INTERCER_DU', array(
             'local' => 'id_mt_ubi',
             'foreign' => 'id_mt_ubi'));

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

        $this->hasOne('TS_TIP_DIR', array(
             'local' => 'id_tip_dir',
             'foreign' => 'id_tip_dir'));
    }
}