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

/**
 * BaseDESTINOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $codmun
 * @property integer $id_comision
 * @property integer $orden
 * @property integer $estado
 * @property string $observacion
 * @property integer $vigencia
 * @property string $coddepto
 * @property COMISIONES $COMISIONES
 * @property COMISIONES $COMISIONES_2
 * @property COMISIONES $COMISIONES_3
 * @property COMISIONES $COMISIONES_4
 * 
 * @method string     getCodmun()       Returns the current record's "codmun" value
 * @method integer    getIdComision()   Returns the current record's "id_comision" value
 * @method integer    getOrden()        Returns the current record's "orden" value
 * @method integer    getEstado()       Returns the current record's "estado" value
 * @method string     getObservacion()  Returns the current record's "observacion" value
 * @method integer    getVigencia()     Returns the current record's "vigencia" value
 * @method string     getCoddepto()     Returns the current record's "coddepto" value
 * @method COMISIONES getCOMISIONES()   Returns the current record's "COMISIONES" value
 * @method COMISIONES getCOMISIONES2()  Returns the current record's "COMISIONES_2" value
 * @method COMISIONES getCOMISIONES3()  Returns the current record's "COMISIONES_3" value
 * @method COMISIONES getCOMISIONES4()  Returns the current record's "COMISIONES_4" value
 * @method DESTINOS   setCodmun()       Sets the current record's "codmun" value
 * @method DESTINOS   setIdComision()   Sets the current record's "id_comision" value
 * @method DESTINOS   setOrden()        Sets the current record's "orden" value
 * @method DESTINOS   setEstado()       Sets the current record's "estado" value
 * @method DESTINOS   setObservacion()  Sets the current record's "observacion" value
 * @method DESTINOS   setVigencia()     Sets the current record's "vigencia" value
 * @method DESTINOS   setCoddepto()     Sets the current record's "coddepto" value
 * @method DESTINOS   setCOMISIONES()   Sets the current record's "COMISIONES" value
 * @method DESTINOS   setCOMISIONES2()  Sets the current record's "COMISIONES_2" value
 * @method DESTINOS   setCOMISIONES3()  Sets the current record's "COMISIONES_3" value
 * @method DESTINOS   setCOMISIONES4()  Sets the current record's "COMISIONES_4" 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 BaseDESTINOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('DESTINOS');
        $this->hasColumn('codmun', 'string', 20, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_comision', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('orden', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('observacion', 'string', 2400, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2400,
             ));
        $this->hasColumn('vigencia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('coddepto', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('COMISIONES as COMISIONES_2', array(
             'local' => 'vigencia',
             'foreign' => 'id'));

        $this->hasOne('COMISIONES as COMISIONES_3', array(
             'local' => 'id_comision',
             'foreign' => 'vigencia'));

        $this->hasOne('COMISIONES as COMISIONES_4', array(
             'local' => 'vigencia',
             'foreign' => 'vigencia'));
    }
}