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

/**
 * BaseCN_AUXILIAR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_auxiliar
 * @property integer $id_cia
 * @property integer $id_catalogo
 * @property integer $id_cuenta_mayor
 * @property integer $id_grupo_cuenta
 * @property integer $id_clase_cuenta
 * @property string $cod_aux
 * @property string $nombre
 * @property string $nom_corto
 * @property integer $activo
 * @property decimal $porcentaje
 * @property integer $id_tipo_sub_aux
 * @property CN_TIPO_SUB_AUX $CN_TIPO_SUB_AUX
 * @property CN_TIPO_SUB_AUX $CN_TIPO_SUB_AUX_2
 * @property CN_TIPO_SUB_AUX $CN_TIPO_SUB_AUX_3
 * @property CN_TIPO_SUB_AUX $CN_TIPO_SUB_AUX_4
 * @property CN_CATALOGO $CN_CATALOGO
 * @property CN_CATALOGO $CN_CATALOGO_6
 * @property CN_CATALOGO $CN_CATALOGO_7
 * @property CN_CATALOGO $CN_CATALOGO_8
 * @property CN_CATALOGO $CN_CATALOGO_9
 * @property CN_CATALOGO $CN_CATALOGO_10
 * @property CN_CATALOGO $CN_CATALOGO_11
 * @property CN_CATALOGO $CN_CATALOGO_12
 * @property CN_CATALOGO $CN_CATALOGO_13
 * @property CN_CATALOGO $CN_CATALOGO_14
 * @property CN_CATALOGO $CN_CATALOGO_15
 * @property CN_CATALOGO $CN_CATALOGO_16
 * @property CN_CATALOGO $CN_CATALOGO_17
 * @property CN_CATALOGO $CN_CATALOGO_18
 * @property CN_CATALOGO $CN_CATALOGO_19
 * @property CN_CATALOGO $CN_CATALOGO_20
 * @property CN_CATALOGO $CN_CATALOGO_21
 * @property CN_CATALOGO $CN_CATALOGO_22
 * @property CN_CATALOGO $CN_CATALOGO_23
 * @property CN_CATALOGO $CN_CATALOGO_24
 * @property CN_CATALOGO $CN_CATALOGO_25
 * @property CN_CATALOGO $CN_CATALOGO_26
 * @property CN_CATALOGO $CN_CATALOGO_27
 * @property CN_CATALOGO $CN_CATALOGO_28
 * @property CN_CATALOGO $CN_CATALOGO_29
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_10
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_11
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_12
 * @property Doctrine_Collection $CNI_TS_IM
 * @property Doctrine_Collection $CNI_TS_IM_6
 * @property Doctrine_Collection $CNI_TS_IM_7
 * @property Doctrine_Collection $CNI_TS_IM_8
 * @property Doctrine_Collection $CNI_RUTA
 * @property Doctrine_Collection $CNI_RUTA_6
 * @property Doctrine_Collection $CNI_RUTA_7
 * @property Doctrine_Collection $CNI_RUTA_8
 * @property CN_CATALOGO $CN_CATALOGO_2
 * @property CN_CATALOGO $CN_CATALOGO_3
 * @property CN_CATALOGO $CN_CATALOGO_4
 * @property CN_CATALOGO $CN_CATALOGO_5
 * @property CN_TIPO_SUB_AUX $CN_TIPO_SUB_AUX_27
 * @property CN_TIPO_SUB_AUX $CN_TIPO_SUB_AUX_28
 * @property CN_TIPO_SUB_AUX $CN_TIPO_SUB_AUX_29
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_35
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_36
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_37
 * 
 * @method integer             getIdAuxiliar()                Returns the current record's "id_auxiliar" value
 * @method integer             getIdCia()                     Returns the current record's "id_cia" value
 * @method integer             getIdCatalogo()                Returns the current record's "id_catalogo" value
 * @method integer             getIdCuentaMayor()             Returns the current record's "id_cuenta_mayor" value
 * @method integer             getIdGrupoCuenta()             Returns the current record's "id_grupo_cuenta" value
 * @method integer             getIdClaseCuenta()             Returns the current record's "id_clase_cuenta" value
 * @method string              getCodAux()                    Returns the current record's "cod_aux" value
 * @method string              getNombre()                    Returns the current record's "nombre" value
 * @method string              getNomCorto()                  Returns the current record's "nom_corto" value
 * @method integer             getActivo()                    Returns the current record's "activo" value
 * @method decimal             getPorcentaje()                Returns the current record's "porcentaje" value
 * @method integer             getIdTipoSubAux()              Returns the current record's "id_tipo_sub_aux" value
 * @method CN_TIPO_SUB_AUX     getCNTIPOSUBAUX()              Returns the current record's "CN_TIPO_SUB_AUX" value
 * @method CN_TIPO_SUB_AUX     getCNTIPOSUBAUX2()             Returns the current record's "CN_TIPO_SUB_AUX_2" value
 * @method CN_TIPO_SUB_AUX     getCNTIPOSUBAUX3()             Returns the current record's "CN_TIPO_SUB_AUX_3" value
 * @method CN_TIPO_SUB_AUX     getCNTIPOSUBAUX4()             Returns the current record's "CN_TIPO_SUB_AUX_4" value
 * @method CN_CATALOGO         getCNCATALOGO()                Returns the current record's "CN_CATALOGO" value
 * @method CN_CATALOGO         getCNCATALOGO6()               Returns the current record's "CN_CATALOGO_6" value
 * @method CN_CATALOGO         getCNCATALOGO7()               Returns the current record's "CN_CATALOGO_7" value
 * @method CN_CATALOGO         getCNCATALOGO8()               Returns the current record's "CN_CATALOGO_8" value
 * @method CN_CATALOGO         getCNCATALOGO9()               Returns the current record's "CN_CATALOGO_9" value
 * @method CN_CATALOGO         getCNCATALOGO10()              Returns the current record's "CN_CATALOGO_10" value
 * @method CN_CATALOGO         getCNCATALOGO11()              Returns the current record's "CN_CATALOGO_11" value
 * @method CN_CATALOGO         getCNCATALOGO12()              Returns the current record's "CN_CATALOGO_12" value
 * @method CN_CATALOGO         getCNCATALOGO13()              Returns the current record's "CN_CATALOGO_13" value
 * @method CN_CATALOGO         getCNCATALOGO14()              Returns the current record's "CN_CATALOGO_14" value
 * @method CN_CATALOGO         getCNCATALOGO15()              Returns the current record's "CN_CATALOGO_15" value
 * @method CN_CATALOGO         getCNCATALOGO16()              Returns the current record's "CN_CATALOGO_16" value
 * @method CN_CATALOGO         getCNCATALOGO17()              Returns the current record's "CN_CATALOGO_17" value
 * @method CN_CATALOGO         getCNCATALOGO18()              Returns the current record's "CN_CATALOGO_18" value
 * @method CN_CATALOGO         getCNCATALOGO19()              Returns the current record's "CN_CATALOGO_19" value
 * @method CN_CATALOGO         getCNCATALOGO20()              Returns the current record's "CN_CATALOGO_20" value
 * @method CN_CATALOGO         getCNCATALOGO21()              Returns the current record's "CN_CATALOGO_21" value
 * @method CN_CATALOGO         getCNCATALOGO22()              Returns the current record's "CN_CATALOGO_22" value
 * @method CN_CATALOGO         getCNCATALOGO23()              Returns the current record's "CN_CATALOGO_23" value
 * @method CN_CATALOGO         getCNCATALOGO24()              Returns the current record's "CN_CATALOGO_24" value
 * @method CN_CATALOGO         getCNCATALOGO25()              Returns the current record's "CN_CATALOGO_25" value
 * @method CN_CATALOGO         getCNCATALOGO26()              Returns the current record's "CN_CATALOGO_26" value
 * @method CN_CATALOGO         getCNCATALOGO27()              Returns the current record's "CN_CATALOGO_27" value
 * @method CN_CATALOGO         getCNCATALOGO28()              Returns the current record's "CN_CATALOGO_28" value
 * @method CN_CATALOGO         getCNCATALOGO29()              Returns the current record's "CN_CATALOGO_29" value
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE()      Returns the current record's "CN_MOVIMIENTO_CONTABLE" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE10()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_10" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE11()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_11" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE12()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_12" collection
 * @method Doctrine_Collection getCNITSIM()                   Returns the current record's "CNI_TS_IM" collection
 * @method Doctrine_Collection getCNITSIM6()                  Returns the current record's "CNI_TS_IM_6" collection
 * @method Doctrine_Collection getCNITSIM7()                  Returns the current record's "CNI_TS_IM_7" collection
 * @method Doctrine_Collection getCNITSIM8()                  Returns the current record's "CNI_TS_IM_8" collection
 * @method Doctrine_Collection getCNIRUTA()                   Returns the current record's "CNI_RUTA" collection
 * @method Doctrine_Collection getCNIRUTA6()                  Returns the current record's "CNI_RUTA_6" collection
 * @method Doctrine_Collection getCNIRUTA7()                  Returns the current record's "CNI_RUTA_7" collection
 * @method Doctrine_Collection getCNIRUTA8()                  Returns the current record's "CNI_RUTA_8" collection
 * @method CN_CATALOGO         getCNCATALOGO2()               Returns the current record's "CN_CATALOGO_2" value
 * @method CN_CATALOGO         getCNCATALOGO3()               Returns the current record's "CN_CATALOGO_3" value
 * @method CN_CATALOGO         getCNCATALOGO4()               Returns the current record's "CN_CATALOGO_4" value
 * @method CN_CATALOGO         getCNCATALOGO5()               Returns the current record's "CN_CATALOGO_5" value
 * @method CN_TIPO_SUB_AUX     getCNTIPOSUBAUX27()            Returns the current record's "CN_TIPO_SUB_AUX_27" value
 * @method CN_TIPO_SUB_AUX     getCNTIPOSUBAUX28()            Returns the current record's "CN_TIPO_SUB_AUX_28" value
 * @method CN_TIPO_SUB_AUX     getCNTIPOSUBAUX29()            Returns the current record's "CN_TIPO_SUB_AUX_29" value
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE35()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_35" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE36()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_36" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE37()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_37" collection
 * @method CN_AUXILIAR         setIdAuxiliar()                Sets the current record's "id_auxiliar" value
 * @method CN_AUXILIAR         setIdCia()                     Sets the current record's "id_cia" value
 * @method CN_AUXILIAR         setIdCatalogo()                Sets the current record's "id_catalogo" value
 * @method CN_AUXILIAR         setIdCuentaMayor()             Sets the current record's "id_cuenta_mayor" value
 * @method CN_AUXILIAR         setIdGrupoCuenta()             Sets the current record's "id_grupo_cuenta" value
 * @method CN_AUXILIAR         setIdClaseCuenta()             Sets the current record's "id_clase_cuenta" value
 * @method CN_AUXILIAR         setCodAux()                    Sets the current record's "cod_aux" value
 * @method CN_AUXILIAR         setNombre()                    Sets the current record's "nombre" value
 * @method CN_AUXILIAR         setNomCorto()                  Sets the current record's "nom_corto" value
 * @method CN_AUXILIAR         setActivo()                    Sets the current record's "activo" value
 * @method CN_AUXILIAR         setPorcentaje()                Sets the current record's "porcentaje" value
 * @method CN_AUXILIAR         setIdTipoSubAux()              Sets the current record's "id_tipo_sub_aux" value
 * @method CN_AUXILIAR         setCNTIPOSUBAUX()              Sets the current record's "CN_TIPO_SUB_AUX" value
 * @method CN_AUXILIAR         setCNTIPOSUBAUX2()             Sets the current record's "CN_TIPO_SUB_AUX_2" value
 * @method CN_AUXILIAR         setCNTIPOSUBAUX3()             Sets the current record's "CN_TIPO_SUB_AUX_3" value
 * @method CN_AUXILIAR         setCNTIPOSUBAUX4()             Sets the current record's "CN_TIPO_SUB_AUX_4" value
 * @method CN_AUXILIAR         setCNCATALOGO()                Sets the current record's "CN_CATALOGO" value
 * @method CN_AUXILIAR         setCNCATALOGO6()               Sets the current record's "CN_CATALOGO_6" value
 * @method CN_AUXILIAR         setCNCATALOGO7()               Sets the current record's "CN_CATALOGO_7" value
 * @method CN_AUXILIAR         setCNCATALOGO8()               Sets the current record's "CN_CATALOGO_8" value
 * @method CN_AUXILIAR         setCNCATALOGO9()               Sets the current record's "CN_CATALOGO_9" value
 * @method CN_AUXILIAR         setCNCATALOGO10()              Sets the current record's "CN_CATALOGO_10" value
 * @method CN_AUXILIAR         setCNCATALOGO11()              Sets the current record's "CN_CATALOGO_11" value
 * @method CN_AUXILIAR         setCNCATALOGO12()              Sets the current record's "CN_CATALOGO_12" value
 * @method CN_AUXILIAR         setCNCATALOGO13()              Sets the current record's "CN_CATALOGO_13" value
 * @method CN_AUXILIAR         setCNCATALOGO14()              Sets the current record's "CN_CATALOGO_14" value
 * @method CN_AUXILIAR         setCNCATALOGO15()              Sets the current record's "CN_CATALOGO_15" value
 * @method CN_AUXILIAR         setCNCATALOGO16()              Sets the current record's "CN_CATALOGO_16" value
 * @method CN_AUXILIAR         setCNCATALOGO17()              Sets the current record's "CN_CATALOGO_17" value
 * @method CN_AUXILIAR         setCNCATALOGO18()              Sets the current record's "CN_CATALOGO_18" value
 * @method CN_AUXILIAR         setCNCATALOGO19()              Sets the current record's "CN_CATALOGO_19" value
 * @method CN_AUXILIAR         setCNCATALOGO20()              Sets the current record's "CN_CATALOGO_20" value
 * @method CN_AUXILIAR         setCNCATALOGO21()              Sets the current record's "CN_CATALOGO_21" value
 * @method CN_AUXILIAR         setCNCATALOGO22()              Sets the current record's "CN_CATALOGO_22" value
 * @method CN_AUXILIAR         setCNCATALOGO23()              Sets the current record's "CN_CATALOGO_23" value
 * @method CN_AUXILIAR         setCNCATALOGO24()              Sets the current record's "CN_CATALOGO_24" value
 * @method CN_AUXILIAR         setCNCATALOGO25()              Sets the current record's "CN_CATALOGO_25" value
 * @method CN_AUXILIAR         setCNCATALOGO26()              Sets the current record's "CN_CATALOGO_26" value
 * @method CN_AUXILIAR         setCNCATALOGO27()              Sets the current record's "CN_CATALOGO_27" value
 * @method CN_AUXILIAR         setCNCATALOGO28()              Sets the current record's "CN_CATALOGO_28" value
 * @method CN_AUXILIAR         setCNCATALOGO29()              Sets the current record's "CN_CATALOGO_29" value
 * @method CN_AUXILIAR         setCNMOVIMIENTOCONTABLE()      Sets the current record's "CN_MOVIMIENTO_CONTABLE" collection
 * @method CN_AUXILIAR         setCNMOVIMIENTOCONTABLE10()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_10" collection
 * @method CN_AUXILIAR         setCNMOVIMIENTOCONTABLE11()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_11" collection
 * @method CN_AUXILIAR         setCNMOVIMIENTOCONTABLE12()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_12" collection
 * @method CN_AUXILIAR         setCNITSIM()                   Sets the current record's "CNI_TS_IM" collection
 * @method CN_AUXILIAR         setCNITSIM6()                  Sets the current record's "CNI_TS_IM_6" collection
 * @method CN_AUXILIAR         setCNITSIM7()                  Sets the current record's "CNI_TS_IM_7" collection
 * @method CN_AUXILIAR         setCNITSIM8()                  Sets the current record's "CNI_TS_IM_8" collection
 * @method CN_AUXILIAR         setCNIRUTA()                   Sets the current record's "CNI_RUTA" collection
 * @method CN_AUXILIAR         setCNIRUTA6()                  Sets the current record's "CNI_RUTA_6" collection
 * @method CN_AUXILIAR         setCNIRUTA7()                  Sets the current record's "CNI_RUTA_7" collection
 * @method CN_AUXILIAR         setCNIRUTA8()                  Sets the current record's "CNI_RUTA_8" collection
 * @method CN_AUXILIAR         setCNCATALOGO2()               Sets the current record's "CN_CATALOGO_2" value
 * @method CN_AUXILIAR         setCNCATALOGO3()               Sets the current record's "CN_CATALOGO_3" value
 * @method CN_AUXILIAR         setCNCATALOGO4()               Sets the current record's "CN_CATALOGO_4" value
 * @method CN_AUXILIAR         setCNCATALOGO5()               Sets the current record's "CN_CATALOGO_5" value
 * @method CN_AUXILIAR         setCNTIPOSUBAUX27()            Sets the current record's "CN_TIPO_SUB_AUX_27" value
 * @method CN_AUXILIAR         setCNTIPOSUBAUX28()            Sets the current record's "CN_TIPO_SUB_AUX_28" value
 * @method CN_AUXILIAR         setCNTIPOSUBAUX29()            Sets the current record's "CN_TIPO_SUB_AUX_29" value
 * @method CN_AUXILIAR         setCNMOVIMIENTOCONTABLE35()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_35" collection
 * @method CN_AUXILIAR         setCNMOVIMIENTOCONTABLE36()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_36" collection
 * @method CN_AUXILIAR         setCNMOVIMIENTOCONTABLE37()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_37" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_AUXILIAR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_AUXILIAR');
        $this->hasColumn('id_auxiliar', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_catalogo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cuenta_mayor', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_grupo_cuenta', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_clase_cuenta', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cod_aux', 'string', 3, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 3,
             ));
        $this->hasColumn('nombre', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('nom_corto', 'string', 32, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 32,
             ));
        $this->hasColumn('activo', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('porcentaje', 'decimal', 3, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 3,
             ));
        $this->hasColumn('id_tipo_sub_aux', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('CN_TIPO_SUB_AUX as CN_TIPO_SUB_AUX_2', array(
             'local' => 'id_tipo_sub_aux',
             'foreign' => 'id_tipo_sub_aux'));

        $this->hasOne('CN_TIPO_SUB_AUX as CN_TIPO_SUB_AUX_3', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_TIPO_SUB_AUX as CN_TIPO_SUB_AUX_4', array(
             'local' => 'id_tipo_sub_aux',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_CATALOGO', array(
             'local' => 'id_cia',
             'foreign' => 'id_catalogo'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_6', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_catalogo'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_7', array(
             'local' => 'id_cuenta_mayor',
             'foreign' => 'id_catalogo'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_8', array(
             'local' => 'id_grupo_cuenta',
             'foreign' => 'id_catalogo'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_9', array(
             'local' => 'id_clase_cuenta',
             'foreign' => 'id_catalogo'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_10', array(
             'local' => 'id_cia',
             'foreign' => 'id_cuenta_mayor'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_11', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_cuenta_mayor'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_12', array(
             'local' => 'id_cuenta_mayor',
             'foreign' => 'id_cuenta_mayor'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_13', array(
             'local' => 'id_grupo_cuenta',
             'foreign' => 'id_cuenta_mayor'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_14', array(
             'local' => 'id_clase_cuenta',
             'foreign' => 'id_cuenta_mayor'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_15', array(
             'local' => 'id_cia',
             'foreign' => 'id_grupo_cuenta'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_16', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_grupo_cuenta'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_17', array(
             'local' => 'id_cuenta_mayor',
             'foreign' => 'id_grupo_cuenta'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_18', array(
             'local' => 'id_grupo_cuenta',
             'foreign' => 'id_grupo_cuenta'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_19', array(
             'local' => 'id_clase_cuenta',
             'foreign' => 'id_grupo_cuenta'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_20', array(
             'local' => 'id_cia',
             'foreign' => 'id_clase_cuenta'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_21', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_clase_cuenta'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_22', array(
             'local' => 'id_cuenta_mayor',
             'foreign' => 'id_clase_cuenta'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_23', array(
             'local' => 'id_grupo_cuenta',
             'foreign' => 'id_clase_cuenta'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_24', array(
             'local' => 'id_clase_cuenta',
             'foreign' => 'id_clase_cuenta'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_25', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_26', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_27', array(
             'local' => 'id_cuenta_mayor',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_28', array(
             'local' => 'id_grupo_cuenta',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_29', array(
             'local' => 'id_clase_cuenta',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_MOVIMIENTO_CONTABLE', array(
             'local' => 'id_auxiliar',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_10', array(
             'local' => 'id_auxiliar',
             'foreign' => 'id_auxiliar'));

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_11', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_12', array(
             'local' => 'id_cia',
             'foreign' => 'id_auxiliar'));

        $this->hasMany('CNI_TS_IM', array(
             'local' => 'id_auxiliar',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_TS_IM as CNI_TS_IM_6', array(
             'local' => 'id_auxiliar',
             'foreign' => 'id_auxiliar'));

        $this->hasMany('CNI_TS_IM as CNI_TS_IM_7', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasMany('CNI_TS_IM as CNI_TS_IM_8', array(
             'local' => 'id_cia',
             'foreign' => 'id_auxiliar'));

        $this->hasMany('CNI_RUTA', array(
             'local' => 'id_auxiliar',
             'foreign' => 'id_ruta'));

        $this->hasMany('CNI_RUTA as CNI_RUTA_6', array(
             'local' => 'id_auxiliar',
             'foreign' => 'id_auxiliar'));

        $this->hasMany('CNI_RUTA as CNI_RUTA_7', array(
             'local' => 'id_cia',
             'foreign' => 'id_ruta'));

        $this->hasMany('CNI_RUTA as CNI_RUTA_8', array(
             'local' => 'id_cia',
             'foreign' => 'id_auxiliar'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_2', array(
             'local' => 'id_cia',
             'foreign' => 'id_cuenta_mayor'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_3', array(
             'local' => 'id_cia',
             'foreign' => 'id_grupo_cuenta'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_4', array(
             'local' => 'id_cia',
             'foreign' => 'id_clase_cuenta'));

        $this->hasOne('CN_CATALOGO as CN_CATALOGO_5', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_TIPO_SUB_AUX as CN_TIPO_SUB_AUX_27', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_TIPO_SUB_AUX as CN_TIPO_SUB_AUX_28', array(
             'local' => 'id_tipo_sub_aux',
             'foreign' => 'id_tipo_sub_aux'));

        $this->hasOne('CN_TIPO_SUB_AUX as CN_TIPO_SUB_AUX_29', array(
             'local' => 'id_tipo_sub_aux',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_35', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_36', array(
             'local' => 'id_auxiliar',
             'foreign' => 'id_auxiliar'));

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_37', array(
             'local' => 'id_cia',
             'foreign' => 'id_auxiliar'));
    }
}