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

/**
 * BaseINTERCER_REG
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_reg
 * @property integer $id_cla_reg
 * @property integer $id_depto
 * @property integer $id_mun
 * @property integer $id_mae_ter
 * @property DEPARTAMENTO $DEPARTAMENTO
 * @property INTERCEROS $INTERCEROS
 * @property INTERCER_CLA_REG $INTERCER_CLA_REG
 * @property MUNICIPIOS $MUNICIPIOS
 * 
 * @method integer          getIdReg()            Returns the current record's "id_reg" value
 * @method integer          getIdClaReg()         Returns the current record's "id_cla_reg" value
 * @method integer          getIdDepto()          Returns the current record's "id_depto" value
 * @method integer          getIdMun()            Returns the current record's "id_mun" value
 * @method integer          getIdMaeTer()         Returns the current record's "id_mae_ter" value
 * @method DEPARTAMENTO     getDEPARTAMENTO()     Returns the current record's "DEPARTAMENTO" value
 * @method INTERCEROS       getINTERCEROS()       Returns the current record's "INTERCEROS" value
 * @method INTERCER_CLA_REG getINTERCERCLAREG()   Returns the current record's "INTERCER_CLA_REG" value
 * @method MUNICIPIOS       getMUNICIPIOS()       Returns the current record's "MUNICIPIOS" value
 * @method INTERCER_REG     setIdReg()            Sets the current record's "id_reg" value
 * @method INTERCER_REG     setIdClaReg()         Sets the current record's "id_cla_reg" value
 * @method INTERCER_REG     setIdDepto()          Sets the current record's "id_depto" value
 * @method INTERCER_REG     setIdMun()            Sets the current record's "id_mun" value
 * @method INTERCER_REG     setIdMaeTer()         Sets the current record's "id_mae_ter" value
 * @method INTERCER_REG     setDEPARTAMENTO()     Sets the current record's "DEPARTAMENTO" value
 * @method INTERCER_REG     setINTERCEROS()       Sets the current record's "INTERCEROS" value
 * @method INTERCER_REG     setINTERCERCLAREG()   Sets the current record's "INTERCER_CLA_REG" value
 * @method INTERCER_REG     setMUNICIPIOS()       Sets the current record's "MUNICIPIOS" value
 * 
 * @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_REG extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('INTERCER_REG');
        $this->hasColumn('id_reg', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_cla_reg', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_depto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mun', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

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

        $this->hasOne('INTERCER_CLA_REG', array(
             'local' => 'id_cla_reg',
             'foreign' => 'id_cla_reg'));

        $this->hasOne('MUNICIPIOS', array(
             'local' => 'id_mun',
             'foreign' => 'codmun'));
    }
}