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

/**
 * BaseCN_CUENTA_MAYOR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cuenta_mayor
 * @property integer $id_grupo_cuenta
 * @property integer $id_clase_cuenta
 * @property integer $id_cia
 * @property string $digitos
 * @property string $nombre
 * @property string $nom_corto
 * @property string $naturaleza
 * @property CN_GRUPO_CUENTA $CN_GRUPO_CUENTA
 * @property CN_GRUPO_CUENTA $CN_GRUPO_CUENTA_2
 * @property CN_GRUPO_CUENTA $CN_GRUPO_CUENTA_3
 * @property CN_GRUPO_CUENTA $CN_GRUPO_CUENTA_4
 * @property CN_GRUPO_CUENTA $CN_GRUPO_CUENTA_5
 * @property CN_GRUPO_CUENTA $CN_GRUPO_CUENTA_6
 * @property CN_GRUPO_CUENTA $CN_GRUPO_CUENTA_7
 * @property CN_GRUPO_CUENTA $CN_GRUPO_CUENTA_8
 * @property CN_GRUPO_CUENTA $CN_GRUPO_CUENTA_9
 * @property Doctrine_Collection $CN_CATALOGO
 * @property Doctrine_Collection $CN_CATALOGO_4
 * @property Doctrine_Collection $CN_CATALOGO_5
 * @property Doctrine_Collection $CN_CATALOGO_6
 * @property Doctrine_Collection $CN_CATALOGO_7
 * @property Doctrine_Collection $CN_CATALOGO_8
 * @property Doctrine_Collection $CN_CATALOGO_9
 * @property Doctrine_Collection $CN_CATALOGO_10
 * @property Doctrine_Collection $CN_CATALOGO_11
 * @property Doctrine_Collection $CN_CATALOGO_12
 * @property Doctrine_Collection $CN_CATALOGO_13
 * @property Doctrine_Collection $CN_CATALOGO_14
 * @property Doctrine_Collection $CN_CATALOGO_15
 * @property Doctrine_Collection $CN_CATALOGO_16
 * @property Doctrine_Collection $CN_CATALOGO_17
 * @property Doctrine_Collection $CN_CATALOGO_18
 * @property Doctrine_Collection $CNI_TS_IM
 * @property Doctrine_Collection $CNI_TS_IM_35
 * @property Doctrine_Collection $CNI_TS_IM_36
 * @property Doctrine_Collection $CNI_TS_IM_37
 * @property Doctrine_Collection $CNI_TS_IM_38
 * @property Doctrine_Collection $CNI_TS_IM_39
 * @property Doctrine_Collection $CNI_TS_IM_40
 * @property Doctrine_Collection $CNI_TS_IM_41
 * @property Doctrine_Collection $CNI_TS_IM_42
 * @property Doctrine_Collection $CNI_TS_IM_43
 * @property Doctrine_Collection $CNI_TS_IM_44
 * @property Doctrine_Collection $CNI_TS_IM_45
 * @property Doctrine_Collection $CNI_TS_IM_46
 * @property Doctrine_Collection $CNI_TS_IM_47
 * @property Doctrine_Collection $CNI_TS_IM_48
 * @property Doctrine_Collection $CNI_TS_IM_49
 * @property Doctrine_Collection $CN_CATALOGO_2
 * @property Doctrine_Collection $CN_CATALOGO_3
 * 
 * @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 integer             getIdCia()             Returns the current record's "id_cia" value
 * @method string              getDigitos()           Returns the current record's "digitos" value
 * @method string              getNombre()            Returns the current record's "nombre" value
 * @method string              getNomCorto()          Returns the current record's "nom_corto" value
 * @method string              getNaturaleza()        Returns the current record's "naturaleza" value
 * @method CN_GRUPO_CUENTA     getCNGRUPOCUENTA()     Returns the current record's "CN_GRUPO_CUENTA" value
 * @method CN_GRUPO_CUENTA     getCNGRUPOCUENTA2()    Returns the current record's "CN_GRUPO_CUENTA_2" value
 * @method CN_GRUPO_CUENTA     getCNGRUPOCUENTA3()    Returns the current record's "CN_GRUPO_CUENTA_3" value
 * @method CN_GRUPO_CUENTA     getCNGRUPOCUENTA4()    Returns the current record's "CN_GRUPO_CUENTA_4" value
 * @method CN_GRUPO_CUENTA     getCNGRUPOCUENTA5()    Returns the current record's "CN_GRUPO_CUENTA_5" value
 * @method CN_GRUPO_CUENTA     getCNGRUPOCUENTA6()    Returns the current record's "CN_GRUPO_CUENTA_6" value
 * @method CN_GRUPO_CUENTA     getCNGRUPOCUENTA7()    Returns the current record's "CN_GRUPO_CUENTA_7" value
 * @method CN_GRUPO_CUENTA     getCNGRUPOCUENTA8()    Returns the current record's "CN_GRUPO_CUENTA_8" value
 * @method CN_GRUPO_CUENTA     getCNGRUPOCUENTA9()    Returns the current record's "CN_GRUPO_CUENTA_9" value
 * @method Doctrine_Collection getCNCATALOGO()        Returns the current record's "CN_CATALOGO" collection
 * @method Doctrine_Collection getCNCATALOGO4()       Returns the current record's "CN_CATALOGO_4" collection
 * @method Doctrine_Collection getCNCATALOGO5()       Returns the current record's "CN_CATALOGO_5" collection
 * @method Doctrine_Collection getCNCATALOGO6()       Returns the current record's "CN_CATALOGO_6" collection
 * @method Doctrine_Collection getCNCATALOGO7()       Returns the current record's "CN_CATALOGO_7" collection
 * @method Doctrine_Collection getCNCATALOGO8()       Returns the current record's "CN_CATALOGO_8" collection
 * @method Doctrine_Collection getCNCATALOGO9()       Returns the current record's "CN_CATALOGO_9" collection
 * @method Doctrine_Collection getCNCATALOGO10()      Returns the current record's "CN_CATALOGO_10" collection
 * @method Doctrine_Collection getCNCATALOGO11()      Returns the current record's "CN_CATALOGO_11" collection
 * @method Doctrine_Collection getCNCATALOGO12()      Returns the current record's "CN_CATALOGO_12" collection
 * @method Doctrine_Collection getCNCATALOGO13()      Returns the current record's "CN_CATALOGO_13" collection
 * @method Doctrine_Collection getCNCATALOGO14()      Returns the current record's "CN_CATALOGO_14" collection
 * @method Doctrine_Collection getCNCATALOGO15()      Returns the current record's "CN_CATALOGO_15" collection
 * @method Doctrine_Collection getCNCATALOGO16()      Returns the current record's "CN_CATALOGO_16" collection
 * @method Doctrine_Collection getCNCATALOGO17()      Returns the current record's "CN_CATALOGO_17" collection
 * @method Doctrine_Collection getCNCATALOGO18()      Returns the current record's "CN_CATALOGO_18" collection
 * @method Doctrine_Collection getCNITSIM()           Returns the current record's "CNI_TS_IM" collection
 * @method Doctrine_Collection getCNITSIM35()         Returns the current record's "CNI_TS_IM_35" collection
 * @method Doctrine_Collection getCNITSIM36()         Returns the current record's "CNI_TS_IM_36" collection
 * @method Doctrine_Collection getCNITSIM37()         Returns the current record's "CNI_TS_IM_37" collection
 * @method Doctrine_Collection getCNITSIM38()         Returns the current record's "CNI_TS_IM_38" collection
 * @method Doctrine_Collection getCNITSIM39()         Returns the current record's "CNI_TS_IM_39" collection
 * @method Doctrine_Collection getCNITSIM40()         Returns the current record's "CNI_TS_IM_40" collection
 * @method Doctrine_Collection getCNITSIM41()         Returns the current record's "CNI_TS_IM_41" collection
 * @method Doctrine_Collection getCNITSIM42()         Returns the current record's "CNI_TS_IM_42" collection
 * @method Doctrine_Collection getCNITSIM43()         Returns the current record's "CNI_TS_IM_43" collection
 * @method Doctrine_Collection getCNITSIM44()         Returns the current record's "CNI_TS_IM_44" collection
 * @method Doctrine_Collection getCNITSIM45()         Returns the current record's "CNI_TS_IM_45" collection
 * @method Doctrine_Collection getCNITSIM46()         Returns the current record's "CNI_TS_IM_46" collection
 * @method Doctrine_Collection getCNITSIM47()         Returns the current record's "CNI_TS_IM_47" collection
 * @method Doctrine_Collection getCNITSIM48()         Returns the current record's "CNI_TS_IM_48" collection
 * @method Doctrine_Collection getCNITSIM49()         Returns the current record's "CNI_TS_IM_49" collection
 * @method Doctrine_Collection getCNCATALOGO2()       Returns the current record's "CN_CATALOGO_2" collection
 * @method Doctrine_Collection getCNCATALOGO3()       Returns the current record's "CN_CATALOGO_3" collection
 * @method CN_CUENTA_MAYOR     setIdCuentaMayor()     Sets the current record's "id_cuenta_mayor" value
 * @method CN_CUENTA_MAYOR     setIdGrupoCuenta()     Sets the current record's "id_grupo_cuenta" value
 * @method CN_CUENTA_MAYOR     setIdClaseCuenta()     Sets the current record's "id_clase_cuenta" value
 * @method CN_CUENTA_MAYOR     setIdCia()             Sets the current record's "id_cia" value
 * @method CN_CUENTA_MAYOR     setDigitos()           Sets the current record's "digitos" value
 * @method CN_CUENTA_MAYOR     setNombre()            Sets the current record's "nombre" value
 * @method CN_CUENTA_MAYOR     setNomCorto()          Sets the current record's "nom_corto" value
 * @method CN_CUENTA_MAYOR     setNaturaleza()        Sets the current record's "naturaleza" value
 * @method CN_CUENTA_MAYOR     setCNGRUPOCUENTA()     Sets the current record's "CN_GRUPO_CUENTA" value
 * @method CN_CUENTA_MAYOR     setCNGRUPOCUENTA2()    Sets the current record's "CN_GRUPO_CUENTA_2" value
 * @method CN_CUENTA_MAYOR     setCNGRUPOCUENTA3()    Sets the current record's "CN_GRUPO_CUENTA_3" value
 * @method CN_CUENTA_MAYOR     setCNGRUPOCUENTA4()    Sets the current record's "CN_GRUPO_CUENTA_4" value
 * @method CN_CUENTA_MAYOR     setCNGRUPOCUENTA5()    Sets the current record's "CN_GRUPO_CUENTA_5" value
 * @method CN_CUENTA_MAYOR     setCNGRUPOCUENTA6()    Sets the current record's "CN_GRUPO_CUENTA_6" value
 * @method CN_CUENTA_MAYOR     setCNGRUPOCUENTA7()    Sets the current record's "CN_GRUPO_CUENTA_7" value
 * @method CN_CUENTA_MAYOR     setCNGRUPOCUENTA8()    Sets the current record's "CN_GRUPO_CUENTA_8" value
 * @method CN_CUENTA_MAYOR     setCNGRUPOCUENTA9()    Sets the current record's "CN_GRUPO_CUENTA_9" value
 * @method CN_CUENTA_MAYOR     setCNCATALOGO()        Sets the current record's "CN_CATALOGO" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO4()       Sets the current record's "CN_CATALOGO_4" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO5()       Sets the current record's "CN_CATALOGO_5" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO6()       Sets the current record's "CN_CATALOGO_6" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO7()       Sets the current record's "CN_CATALOGO_7" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO8()       Sets the current record's "CN_CATALOGO_8" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO9()       Sets the current record's "CN_CATALOGO_9" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO10()      Sets the current record's "CN_CATALOGO_10" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO11()      Sets the current record's "CN_CATALOGO_11" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO12()      Sets the current record's "CN_CATALOGO_12" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO13()      Sets the current record's "CN_CATALOGO_13" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO14()      Sets the current record's "CN_CATALOGO_14" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO15()      Sets the current record's "CN_CATALOGO_15" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO16()      Sets the current record's "CN_CATALOGO_16" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO17()      Sets the current record's "CN_CATALOGO_17" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO18()      Sets the current record's "CN_CATALOGO_18" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM()           Sets the current record's "CNI_TS_IM" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM35()         Sets the current record's "CNI_TS_IM_35" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM36()         Sets the current record's "CNI_TS_IM_36" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM37()         Sets the current record's "CNI_TS_IM_37" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM38()         Sets the current record's "CNI_TS_IM_38" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM39()         Sets the current record's "CNI_TS_IM_39" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM40()         Sets the current record's "CNI_TS_IM_40" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM41()         Sets the current record's "CNI_TS_IM_41" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM42()         Sets the current record's "CNI_TS_IM_42" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM43()         Sets the current record's "CNI_TS_IM_43" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM44()         Sets the current record's "CNI_TS_IM_44" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM45()         Sets the current record's "CNI_TS_IM_45" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM46()         Sets the current record's "CNI_TS_IM_46" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM47()         Sets the current record's "CNI_TS_IM_47" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM48()         Sets the current record's "CNI_TS_IM_48" collection
 * @method CN_CUENTA_MAYOR     setCNITSIM49()         Sets the current record's "CNI_TS_IM_49" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO2()       Sets the current record's "CN_CATALOGO_2" collection
 * @method CN_CUENTA_MAYOR     setCNCATALOGO3()       Sets the current record's "CN_CATALOGO_3" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_CUENTA_MAYOR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_CUENTA_MAYOR');
        $this->hasColumn('id_cuenta_mayor', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_grupo_cuenta', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_clase_cuenta', '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('digitos', 'string', 2, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2,
             ));
        $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('naturaleza', 'string', 1, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '\'D\' ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

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

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

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

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

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

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

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

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

        $this->hasMany('CN_CATALOGO', array(
             'local' => 'id_cuenta_mayor',
             'foreign' => 'id_cuenta_mayor'));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        $this->hasMany('CNI_TS_IM as CNI_TS_IM_35', array(
             'local' => 'id_cuenta_mayor',
             'foreign' => 'id_clase_cuenta'));

        $this->hasMany('CNI_TS_IM as CNI_TS_IM_36', array(
             'local' => 'id_cuenta_mayor',
             'foreign' => 'id_grupo_cuenta'));

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

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

        $this->hasMany('CNI_TS_IM as CNI_TS_IM_39', array(
             'local' => 'id_grupo_cuenta',
             'foreign' => 'id_clase_cuenta'));

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

        $this->hasMany('CNI_TS_IM as CNI_TS_IM_41', array(
             'local' => 'id_grupo_cuenta',
             'foreign' => 'id_cuenta_mayor'));

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

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

        $this->hasMany('CNI_TS_IM as CNI_TS_IM_44', array(
             'local' => 'id_clase_cuenta',
             'foreign' => 'id_grupo_cuenta'));

        $this->hasMany('CNI_TS_IM as CNI_TS_IM_45', array(
             'local' => 'id_clase_cuenta',
             'foreign' => 'id_cuenta_mayor'));

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

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

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

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

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

        $this->hasMany('CN_CATALOGO as CN_CATALOGO_3', array(
             'local' => 'id_clase_cuenta',
             'foreign' => 'id_cuenta_mayor'));
    }
}