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

/**
 * BaseCA_DET_LIQ_MIGRA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_det_liq_canon
 * @property integer $vigencia
 * @property integer $id_liq_canon
 * @property integer $id_titulo
 * @property integer $id_etapa
 * @property integer $id_anual_etapa
 * @property integer $id_usuario_aprueba
 * @property integer $id_smdlv
 * @property integer $id_usuario_anula
 * @property integer $area
 * @property integer $anualidad
 * @property decimal $valor
 * @property CA_ANUAL_ETAPA $CA_ANUAL_ETAPA
 * @property CA_ETAPA $CA_ETAPA
 * @property CA_LIQ_CANON $CA_LIQ_CANON
 * @property CA_LIQ_CANON $CA_LIQ_CANON_4
 * @property CA_LIQ_CANON $CA_LIQ_CANON_5
 * @property CA_LIQ_CANON $CA_LIQ_CANON_6
 * @property CA_SMDLV $CA_SMDLV
 * @property RMN_TITULO $RMN_TITULO
 * 
 * @method integer          getIdDetLiqCanon()      Returns the current record's "id_det_liq_canon" value
 * @method integer          getVigencia()           Returns the current record's "vigencia" value
 * @method integer          getIdLiqCanon()         Returns the current record's "id_liq_canon" value
 * @method integer          getIdTitulo()           Returns the current record's "id_titulo" value
 * @method integer          getIdEtapa()            Returns the current record's "id_etapa" value
 * @method integer          getIdAnualEtapa()       Returns the current record's "id_anual_etapa" value
 * @method integer          getIdUsuarioAprueba()   Returns the current record's "id_usuario_aprueba" value
 * @method integer          getIdSmdlv()            Returns the current record's "id_smdlv" value
 * @method integer          getIdUsuarioAnula()     Returns the current record's "id_usuario_anula" value
 * @method integer          getArea()               Returns the current record's "area" value
 * @method integer          getAnualidad()          Returns the current record's "anualidad" value
 * @method decimal          getValor()              Returns the current record's "valor" value
 * @method CA_ANUAL_ETAPA   getCAANUALETAPA()       Returns the current record's "CA_ANUAL_ETAPA" value
 * @method CA_ETAPA         getCAETAPA()            Returns the current record's "CA_ETAPA" value
 * @method CA_LIQ_CANON     getCALIQCANON()         Returns the current record's "CA_LIQ_CANON" value
 * @method CA_LIQ_CANON     getCALIQCANON4()        Returns the current record's "CA_LIQ_CANON_4" value
 * @method CA_LIQ_CANON     getCALIQCANON5()        Returns the current record's "CA_LIQ_CANON_5" value
 * @method CA_LIQ_CANON     getCALIQCANON6()        Returns the current record's "CA_LIQ_CANON_6" value
 * @method CA_SMDLV         getCASMDLV()            Returns the current record's "CA_SMDLV" value
 * @method RMN_TITULO       getRMNTITULO()          Returns the current record's "RMN_TITULO" value
 * @method CA_DET_LIQ_MIGRA setIdDetLiqCanon()      Sets the current record's "id_det_liq_canon" value
 * @method CA_DET_LIQ_MIGRA setVigencia()           Sets the current record's "vigencia" value
 * @method CA_DET_LIQ_MIGRA setIdLiqCanon()         Sets the current record's "id_liq_canon" value
 * @method CA_DET_LIQ_MIGRA setIdTitulo()           Sets the current record's "id_titulo" value
 * @method CA_DET_LIQ_MIGRA setIdEtapa()            Sets the current record's "id_etapa" value
 * @method CA_DET_LIQ_MIGRA setIdAnualEtapa()       Sets the current record's "id_anual_etapa" value
 * @method CA_DET_LIQ_MIGRA setIdUsuarioAprueba()   Sets the current record's "id_usuario_aprueba" value
 * @method CA_DET_LIQ_MIGRA setIdSmdlv()            Sets the current record's "id_smdlv" value
 * @method CA_DET_LIQ_MIGRA setIdUsuarioAnula()     Sets the current record's "id_usuario_anula" value
 * @method CA_DET_LIQ_MIGRA setArea()               Sets the current record's "area" value
 * @method CA_DET_LIQ_MIGRA setAnualidad()          Sets the current record's "anualidad" value
 * @method CA_DET_LIQ_MIGRA setValor()              Sets the current record's "valor" value
 * @method CA_DET_LIQ_MIGRA setCAANUALETAPA()       Sets the current record's "CA_ANUAL_ETAPA" value
 * @method CA_DET_LIQ_MIGRA setCAETAPA()            Sets the current record's "CA_ETAPA" value
 * @method CA_DET_LIQ_MIGRA setCALIQCANON()         Sets the current record's "CA_LIQ_CANON" value
 * @method CA_DET_LIQ_MIGRA setCALIQCANON4()        Sets the current record's "CA_LIQ_CANON_4" value
 * @method CA_DET_LIQ_MIGRA setCALIQCANON5()        Sets the current record's "CA_LIQ_CANON_5" value
 * @method CA_DET_LIQ_MIGRA setCALIQCANON6()        Sets the current record's "CA_LIQ_CANON_6" value
 * @method CA_DET_LIQ_MIGRA setCASMDLV()            Sets the current record's "CA_SMDLV" value
 * @method CA_DET_LIQ_MIGRA setRMNTITULO()          Sets the current record's "RMN_TITULO" value
 * 
 * @package    canon
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_DET_LIQ_MIGRA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_DET_LIQ_MIGRA');
        $this->hasColumn('id_det_liq_canon', '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('id_liq_canon', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_titulo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_etapa', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_anual_etapa', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_usuario_aprueba', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_smdlv', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_usuario_anula', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('area', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('anualidad', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
    }

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

        $this->hasOne('CA_ETAPA', array(
             'local' => 'id_etapa',
             'foreign' => 'id_etapa'));

        $this->hasOne('CA_LIQ_CANON', array(
             'local' => 'vigencia',
             'foreign' => 'id_liq_canon'));

        $this->hasOne('CA_LIQ_CANON as CA_LIQ_CANON_4', array(
             'local' => 'id_liq_canon',
             'foreign' => 'id_liq_canon'));

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

        $this->hasOne('CA_LIQ_CANON as CA_LIQ_CANON_6', array(
             'local' => 'id_liq_canon',
             'foreign' => 'vigencia'));

        $this->hasOne('CA_SMDLV', array(
             'local' => 'id_smdlv',
             'foreign' => 'id_smdlv'));

        $this->hasOne('RMN_TITULO', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));
    }
}