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

/**
 * BaseCA_DET_LIQ_CANON
 * 
 * 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 timestamp $fecha_aprueba
 * @property timestamp $fecha_anula
 * @property integer $aprobado
 * @property integer $anulado
 * @property string $motivo_anu
 * @property CA_LIQ_CANON $CA_LIQ_CANON
 * @property CA_LIQ_CANON $CA_LIQ_CANON_2
 * @property CA_LIQ_CANON $CA_LIQ_CANON_3
 * @property CA_LIQ_CANON $CA_LIQ_CANON_4
 * @property CA_ANUAL_ETAPA $CA_ANUAL_ETAPA
 * @property CA_ETAPA $CA_ETAPA
 * @property CA_SMDLV $CA_SMDLV
 * @property CA_USUARIO $CA_USUARIO
 * @property CA_USUARIO $CA_USUARIO_9
 * @property RMN_TITULO $RMN_TITULO
 * @property Doctrine_Collection $CA_RECIBO
 * @property Doctrine_Collection $CA_RECIBO_2
 * @property Doctrine_Collection $CA_RECIBO_3
 * @property Doctrine_Collection $CA_RECIBO_4
 * @property CA_LIQ_CANON $CA_LIQ_CANON_5
 * @property CA_USUARIO $CA_USUARIO_8
 * @property CA_LIQ_CANON $CA_LIQ_CANON_6
 * 
 * @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 timestamp           getFechaAprueba()       Returns the current record's "fecha_aprueba" value
 * @method timestamp           getFechaAnula()         Returns the current record's "fecha_anula" value
 * @method integer             getAprobado()           Returns the current record's "aprobado" value
 * @method integer             getAnulado()            Returns the current record's "anulado" value
 * @method string              getMotivoAnu()          Returns the current record's "motivo_anu" value
 * @method CA_LIQ_CANON        getCALIQCANON()         Returns the current record's "CA_LIQ_CANON" value
 * @method CA_LIQ_CANON        getCALIQCANON2()        Returns the current record's "CA_LIQ_CANON_2" value
 * @method CA_LIQ_CANON        getCALIQCANON3()        Returns the current record's "CA_LIQ_CANON_3" value
 * @method CA_LIQ_CANON        getCALIQCANON4()        Returns the current record's "CA_LIQ_CANON_4" 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_SMDLV            getCASMDLV()            Returns the current record's "CA_SMDLV" value
 * @method CA_USUARIO          getCAUSUARIO()          Returns the current record's "CA_USUARIO" value
 * @method CA_USUARIO          getCAUSUARIO9()         Returns the current record's "CA_USUARIO_9" value
 * @method RMN_TITULO          getRMNTITULO()          Returns the current record's "RMN_TITULO" value
 * @method Doctrine_Collection getCARECIBO()           Returns the current record's "CA_RECIBO" collection
 * @method Doctrine_Collection getCARECIBO2()          Returns the current record's "CA_RECIBO_2" collection
 * @method Doctrine_Collection getCARECIBO3()          Returns the current record's "CA_RECIBO_3" collection
 * @method Doctrine_Collection getCARECIBO4()          Returns the current record's "CA_RECIBO_4" collection
 * @method CA_LIQ_CANON        getCALIQCANON5()        Returns the current record's "CA_LIQ_CANON_5" value
 * @method CA_USUARIO          getCAUSUARIO8()         Returns the current record's "CA_USUARIO_8" value
 * @method CA_LIQ_CANON        getCALIQCANON6()        Returns the current record's "CA_LIQ_CANON_6" value
 * @method CA_DET_LIQ_CANON    setIdDetLiqCanon()      Sets the current record's "id_det_liq_canon" value
 * @method CA_DET_LIQ_CANON    setVigencia()           Sets the current record's "vigencia" value
 * @method CA_DET_LIQ_CANON    setIdLiqCanon()         Sets the current record's "id_liq_canon" value
 * @method CA_DET_LIQ_CANON    setIdTitulo()           Sets the current record's "id_titulo" value
 * @method CA_DET_LIQ_CANON    setIdEtapa()            Sets the current record's "id_etapa" value
 * @method CA_DET_LIQ_CANON    setIdAnualEtapa()       Sets the current record's "id_anual_etapa" value
 * @method CA_DET_LIQ_CANON    setIdUsuarioAprueba()   Sets the current record's "id_usuario_aprueba" value
 * @method CA_DET_LIQ_CANON    setIdSmdlv()            Sets the current record's "id_smdlv" value
 * @method CA_DET_LIQ_CANON    setIdUsuarioAnula()     Sets the current record's "id_usuario_anula" value
 * @method CA_DET_LIQ_CANON    setArea()               Sets the current record's "area" value
 * @method CA_DET_LIQ_CANON    setAnualidad()          Sets the current record's "anualidad" value
 * @method CA_DET_LIQ_CANON    setValor()              Sets the current record's "valor" value
 * @method CA_DET_LIQ_CANON    setFechaAprueba()       Sets the current record's "fecha_aprueba" value
 * @method CA_DET_LIQ_CANON    setFechaAnula()         Sets the current record's "fecha_anula" value
 * @method CA_DET_LIQ_CANON    setAprobado()           Sets the current record's "aprobado" value
 * @method CA_DET_LIQ_CANON    setAnulado()            Sets the current record's "anulado" value
 * @method CA_DET_LIQ_CANON    setMotivoAnu()          Sets the current record's "motivo_anu" value
 * @method CA_DET_LIQ_CANON    setCALIQCANON()         Sets the current record's "CA_LIQ_CANON" value
 * @method CA_DET_LIQ_CANON    setCALIQCANON2()        Sets the current record's "CA_LIQ_CANON_2" value
 * @method CA_DET_LIQ_CANON    setCALIQCANON3()        Sets the current record's "CA_LIQ_CANON_3" value
 * @method CA_DET_LIQ_CANON    setCALIQCANON4()        Sets the current record's "CA_LIQ_CANON_4" value
 * @method CA_DET_LIQ_CANON    setCAANUALETAPA()       Sets the current record's "CA_ANUAL_ETAPA" value
 * @method CA_DET_LIQ_CANON    setCAETAPA()            Sets the current record's "CA_ETAPA" value
 * @method CA_DET_LIQ_CANON    setCASMDLV()            Sets the current record's "CA_SMDLV" value
 * @method CA_DET_LIQ_CANON    setCAUSUARIO()          Sets the current record's "CA_USUARIO" value
 * @method CA_DET_LIQ_CANON    setCAUSUARIO9()         Sets the current record's "CA_USUARIO_9" value
 * @method CA_DET_LIQ_CANON    setRMNTITULO()          Sets the current record's "RMN_TITULO" value
 * @method CA_DET_LIQ_CANON    setCARECIBO()           Sets the current record's "CA_RECIBO" collection
 * @method CA_DET_LIQ_CANON    setCARECIBO2()          Sets the current record's "CA_RECIBO_2" collection
 * @method CA_DET_LIQ_CANON    setCARECIBO3()          Sets the current record's "CA_RECIBO_3" collection
 * @method CA_DET_LIQ_CANON    setCARECIBO4()          Sets the current record's "CA_RECIBO_4" collection
 * @method CA_DET_LIQ_CANON    setCALIQCANON5()        Sets the current record's "CA_LIQ_CANON_5" value
 * @method CA_DET_LIQ_CANON    setCAUSUARIO8()         Sets the current record's "CA_USUARIO_8" value
 * @method CA_DET_LIQ_CANON    setCALIQCANON6()        Sets the current record's "CA_LIQ_CANON_6" 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_CANON extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_DET_LIQ_CANON');
        $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' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_titulo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_etapa', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_anual_etapa', 'integer', 8, array(
             'notnull' => true,
             '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' => true,
             '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' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('fecha_aprueba', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_anula', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('aprobado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('anulado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('motivo_anu', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
    }

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

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

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

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

        $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_SMDLV', array(
             'local' => 'id_smdlv',
             'foreign' => 'id_smdlv'));

        $this->hasOne('CA_USUARIO', array(
             'local' => 'id_usuario_aprueba',
             'foreign' => 'id_usuario'));

        $this->hasOne('CA_USUARIO as CA_USUARIO_9', array(
             'local' => 'id_usuario_anula',
             'foreign' => 'id_usuario'));

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

        $this->hasMany('CA_RECIBO', array(
             'local' => 'id_det_liq_canon',
             'foreign' => 'id_det_liq_canon'));

        $this->hasMany('CA_RECIBO as CA_RECIBO_2', array(
             'local' => 'id_det_liq_canon',
             'foreign' => 'vig_liq'));

        $this->hasMany('CA_RECIBO as CA_RECIBO_3', array(
             'local' => 'vigencia',
             'foreign' => 'id_det_liq_canon'));

        $this->hasMany('CA_RECIBO as CA_RECIBO_4', array(
             'local' => 'vigencia',
             'foreign' => 'vig_liq'));

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

        $this->hasOne('CA_USUARIO as CA_USUARIO_8', array(
             'local' => 'id_usuario_anula',
             'foreign' => 'id_usuario'));

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