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

/**
 * BaseCOM_PLAN_DESTINOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $codmun
 * @property integer $id_plan_comisiones
 * @property integer $vigencia
 * @property integer $orden
 * @property integer $estado
 * @property string $observaciones
 * @property integer $id_depto
 * @property COM_PLAN_COMISIONES $COM_PLAN_COMISIONES
 * @property COM_PLAN_COMISIONES $COM_PLAN_COMISIONES_2
 * @property COM_PLAN_COMISIONES $COM_PLAN_COMISIONES_3
 * @property COM_PLAN_COMISIONES $COM_PLAN_COMISIONES_4
 * @property MUNICIPIOS $MUNICIPIOS
 * @property DEPARTAMENTO $DEPARTAMENTO
 * 
 * @method integer             getCodmun()                Returns the current record's "codmun" value
 * @method integer             getIdPlanComisiones()      Returns the current record's "id_plan_comisiones" value
 * @method integer             getVigencia()              Returns the current record's "vigencia" value
 * @method integer             getOrden()                 Returns the current record's "orden" value
 * @method integer             getEstado()                Returns the current record's "estado" value
 * @method string              getObservaciones()         Returns the current record's "observaciones" value
 * @method integer             getIdDepto()               Returns the current record's "id_depto" value
 * @method COM_PLAN_COMISIONES getCOMPLANCOMISIONES()     Returns the current record's "COM_PLAN_COMISIONES" value
 * @method COM_PLAN_COMISIONES getCOMPLANCOMISIONES2()    Returns the current record's "COM_PLAN_COMISIONES_2" value
 * @method COM_PLAN_COMISIONES getCOMPLANCOMISIONES3()    Returns the current record's "COM_PLAN_COMISIONES_3" value
 * @method COM_PLAN_COMISIONES getCOMPLANCOMISIONES4()    Returns the current record's "COM_PLAN_COMISIONES_4" value
 * @method MUNICIPIOS          getMUNICIPIOS()            Returns the current record's "MUNICIPIOS" value
 * @method DEPARTAMENTO        getDEPARTAMENTO()          Returns the current record's "DEPARTAMENTO" value
 * @method COM_PLAN_DESTINOS   setCodmun()                Sets the current record's "codmun" value
 * @method COM_PLAN_DESTINOS   setIdPlanComisiones()      Sets the current record's "id_plan_comisiones" value
 * @method COM_PLAN_DESTINOS   setVigencia()              Sets the current record's "vigencia" value
 * @method COM_PLAN_DESTINOS   setOrden()                 Sets the current record's "orden" value
 * @method COM_PLAN_DESTINOS   setEstado()                Sets the current record's "estado" value
 * @method COM_PLAN_DESTINOS   setObservaciones()         Sets the current record's "observaciones" value
 * @method COM_PLAN_DESTINOS   setIdDepto()               Sets the current record's "id_depto" value
 * @method COM_PLAN_DESTINOS   setCOMPLANCOMISIONES()     Sets the current record's "COM_PLAN_COMISIONES" value
 * @method COM_PLAN_DESTINOS   setCOMPLANCOMISIONES2()    Sets the current record's "COM_PLAN_COMISIONES_2" value
 * @method COM_PLAN_DESTINOS   setCOMPLANCOMISIONES3()    Sets the current record's "COM_PLAN_COMISIONES_3" value
 * @method COM_PLAN_DESTINOS   setCOMPLANCOMISIONES4()    Sets the current record's "COM_PLAN_COMISIONES_4" value
 * @method COM_PLAN_DESTINOS   setMUNICIPIOS()            Sets the current record's "MUNICIPIOS" value
 * @method COM_PLAN_DESTINOS   setDEPARTAMENTO()          Sets the current record's "DEPARTAMENTO" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCOM_PLAN_DESTINOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_PLAN_DESTINOS');
        $this->hasColumn('codmun', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_plan_comisiones', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('vigencia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('orden', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('observaciones', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('id_depto', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('COM_PLAN_COMISIONES as COM_PLAN_COMISIONES_2', array(
             'local' => 'vigencia',
             'foreign' => 'id_plan_comisiones'));

        $this->hasOne('COM_PLAN_COMISIONES as COM_PLAN_COMISIONES_3', array(
             'local' => 'id_plan_comisiones',
             'foreign' => 'vigencia'));

        $this->hasOne('COM_PLAN_COMISIONES as COM_PLAN_COMISIONES_4', array(
             'local' => 'vigencia',
             'foreign' => 'vigencia'));

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

        $this->hasOne('DEPARTAMENTO', array(
             'local' => 'id_depto',
             'foreign' => 'id_depto'));
    }
}