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

/**
 * BaseCN_CONTROL_CAD
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cad
 * @property integer $id_vigencia
 * @property integer $id_cen_op
 * @property integer $id_cia
 * @property integer $id_periodo_contable
 * @property integer $id_tipo_comprobante
 * @property timestamp $fecha_cad
 * @property integer $tot_debito
 * @property integer $tot_credito
 * @property integer $id_ter_genero
 * @property integer $id_ter_reviso
 * @property integer $id_ter_aprobo
 * @property CN_PERIODO_CONTABLE $CN_PERIODO_CONTABLE
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE_3
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE_4
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE_5
 * @property CN_VIGENCIA $CN_VIGENCIA
 * @property CN_CENTRO_OPERACION $CN_CENTRO_OPERACION
 * @property CN_CENTRO_OPERACION $CN_CENTRO_OPERACION_8
 * @property CN_CENTRO_OPERACION $CN_CENTRO_OPERACION_9
 * @property CN_CENTRO_OPERACION $CN_CENTRO_OPERACION_10
 * @property Doctrine_Collection $CN_DOCUMENTO
 * @property Doctrine_Collection $CN_DOCUMENTO_7
 * @property Doctrine_Collection $CN_DOCUMENTO_8
 * @property Doctrine_Collection $CN_DOCUMENTO_9
 * @property Doctrine_Collection $CN_DOCUMENTO_10
 * @property Doctrine_Collection $CN_DOCUMENTO_11
 * @property Doctrine_Collection $CN_DOCUMENTO_12
 * @property Doctrine_Collection $CN_DOCUMENTO_13
 * @property Doctrine_Collection $CN_DOCUMENTO_14
 * @property Doctrine_Collection $CN_DOCUMENTO_15
 * @property Doctrine_Collection $CN_DOCUMENTO_16
 * @property Doctrine_Collection $CN_DOCUMENTO_17
 * @property Doctrine_Collection $CN_DOCUMENTO_18
 * @property Doctrine_Collection $CN_DOCUMENTO_19
 * @property Doctrine_Collection $CN_DOCUMENTO_20
 * @property Doctrine_Collection $CN_DOCUMENTO_21
 * @property CN_CENTRO_OPERACION $CN_CENTRO_OPERACION_2
 * @property CN_CENTRO_OPERACION $CN_CENTRO_OPERACION_3
 * @property CN_CENTRO_OPERACION $CN_CENTRO_OPERACION_4
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE_7
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE_8
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE_9
 * @property Doctrine_Collection $CN_DOCUMENTO_2
 * @property Doctrine_Collection $CN_DOCUMENTO_3
 * @property Doctrine_Collection $CN_DOCUMENTO_4
 * @property Doctrine_Collection $CN_DOCUMENTO_5
 * @property Doctrine_Collection $CN_DOCUMENTO_6
 * 
 * @method integer             getIdCad()                  Returns the current record's "id_cad" value
 * @method integer             getIdVigencia()             Returns the current record's "id_vigencia" value
 * @method integer             getIdCenOp()                Returns the current record's "id_cen_op" value
 * @method integer             getIdCia()                  Returns the current record's "id_cia" value
 * @method integer             getIdPeriodoContable()      Returns the current record's "id_periodo_contable" value
 * @method integer             getIdTipoComprobante()      Returns the current record's "id_tipo_comprobante" value
 * @method timestamp           getFechaCad()               Returns the current record's "fecha_cad" value
 * @method integer             getTotDebito()              Returns the current record's "tot_debito" value
 * @method integer             getTotCredito()             Returns the current record's "tot_credito" value
 * @method integer             getIdTerGenero()            Returns the current record's "id_ter_genero" value
 * @method integer             getIdTerReviso()            Returns the current record's "id_ter_reviso" value
 * @method integer             getIdTerAprobo()            Returns the current record's "id_ter_aprobo" value
 * @method CN_PERIODO_CONTABLE getCNPERIODOCONTABLE()      Returns the current record's "CN_PERIODO_CONTABLE" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE()      Returns the current record's "CN_TIPO_COMPROBANTE" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE3()     Returns the current record's "CN_TIPO_COMPROBANTE_3" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE4()     Returns the current record's "CN_TIPO_COMPROBANTE_4" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE5()     Returns the current record's "CN_TIPO_COMPROBANTE_5" value
 * @method CN_VIGENCIA         getCNVIGENCIA()             Returns the current record's "CN_VIGENCIA" value
 * @method CN_CENTRO_OPERACION getCNCENTROOPERACION()      Returns the current record's "CN_CENTRO_OPERACION" value
 * @method CN_CENTRO_OPERACION getCNCENTROOPERACION8()     Returns the current record's "CN_CENTRO_OPERACION_8" value
 * @method CN_CENTRO_OPERACION getCNCENTROOPERACION9()     Returns the current record's "CN_CENTRO_OPERACION_9" value
 * @method CN_CENTRO_OPERACION getCNCENTROOPERACION10()    Returns the current record's "CN_CENTRO_OPERACION_10" value
 * @method Doctrine_Collection getCNDOCUMENTO()            Returns the current record's "CN_DOCUMENTO" collection
 * @method Doctrine_Collection getCNDOCUMENTO7()           Returns the current record's "CN_DOCUMENTO_7" collection
 * @method Doctrine_Collection getCNDOCUMENTO8()           Returns the current record's "CN_DOCUMENTO_8" collection
 * @method Doctrine_Collection getCNDOCUMENTO9()           Returns the current record's "CN_DOCUMENTO_9" collection
 * @method Doctrine_Collection getCNDOCUMENTO10()          Returns the current record's "CN_DOCUMENTO_10" collection
 * @method Doctrine_Collection getCNDOCUMENTO11()          Returns the current record's "CN_DOCUMENTO_11" collection
 * @method Doctrine_Collection getCNDOCUMENTO12()          Returns the current record's "CN_DOCUMENTO_12" collection
 * @method Doctrine_Collection getCNDOCUMENTO13()          Returns the current record's "CN_DOCUMENTO_13" collection
 * @method Doctrine_Collection getCNDOCUMENTO14()          Returns the current record's "CN_DOCUMENTO_14" collection
 * @method Doctrine_Collection getCNDOCUMENTO15()          Returns the current record's "CN_DOCUMENTO_15" collection
 * @method Doctrine_Collection getCNDOCUMENTO16()          Returns the current record's "CN_DOCUMENTO_16" collection
 * @method Doctrine_Collection getCNDOCUMENTO17()          Returns the current record's "CN_DOCUMENTO_17" collection
 * @method Doctrine_Collection getCNDOCUMENTO18()          Returns the current record's "CN_DOCUMENTO_18" collection
 * @method Doctrine_Collection getCNDOCUMENTO19()          Returns the current record's "CN_DOCUMENTO_19" collection
 * @method Doctrine_Collection getCNDOCUMENTO20()          Returns the current record's "CN_DOCUMENTO_20" collection
 * @method Doctrine_Collection getCNDOCUMENTO21()          Returns the current record's "CN_DOCUMENTO_21" collection
 * @method CN_CENTRO_OPERACION getCNCENTROOPERACION2()     Returns the current record's "CN_CENTRO_OPERACION_2" value
 * @method CN_CENTRO_OPERACION getCNCENTROOPERACION3()     Returns the current record's "CN_CENTRO_OPERACION_3" value
 * @method CN_CENTRO_OPERACION getCNCENTROOPERACION4()     Returns the current record's "CN_CENTRO_OPERACION_4" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE7()     Returns the current record's "CN_TIPO_COMPROBANTE_7" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE8()     Returns the current record's "CN_TIPO_COMPROBANTE_8" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE9()     Returns the current record's "CN_TIPO_COMPROBANTE_9" value
 * @method Doctrine_Collection getCNDOCUMENTO2()           Returns the current record's "CN_DOCUMENTO_2" collection
 * @method Doctrine_Collection getCNDOCUMENTO3()           Returns the current record's "CN_DOCUMENTO_3" collection
 * @method Doctrine_Collection getCNDOCUMENTO4()           Returns the current record's "CN_DOCUMENTO_4" collection
 * @method Doctrine_Collection getCNDOCUMENTO5()           Returns the current record's "CN_DOCUMENTO_5" collection
 * @method Doctrine_Collection getCNDOCUMENTO6()           Returns the current record's "CN_DOCUMENTO_6" collection
 * @method CN_CONTROL_CAD      setIdCad()                  Sets the current record's "id_cad" value
 * @method CN_CONTROL_CAD      setIdVigencia()             Sets the current record's "id_vigencia" value
 * @method CN_CONTROL_CAD      setIdCenOp()                Sets the current record's "id_cen_op" value
 * @method CN_CONTROL_CAD      setIdCia()                  Sets the current record's "id_cia" value
 * @method CN_CONTROL_CAD      setIdPeriodoContable()      Sets the current record's "id_periodo_contable" value
 * @method CN_CONTROL_CAD      setIdTipoComprobante()      Sets the current record's "id_tipo_comprobante" value
 * @method CN_CONTROL_CAD      setFechaCad()               Sets the current record's "fecha_cad" value
 * @method CN_CONTROL_CAD      setTotDebito()              Sets the current record's "tot_debito" value
 * @method CN_CONTROL_CAD      setTotCredito()             Sets the current record's "tot_credito" value
 * @method CN_CONTROL_CAD      setIdTerGenero()            Sets the current record's "id_ter_genero" value
 * @method CN_CONTROL_CAD      setIdTerReviso()            Sets the current record's "id_ter_reviso" value
 * @method CN_CONTROL_CAD      setIdTerAprobo()            Sets the current record's "id_ter_aprobo" value
 * @method CN_CONTROL_CAD      setCNPERIODOCONTABLE()      Sets the current record's "CN_PERIODO_CONTABLE" value
 * @method CN_CONTROL_CAD      setCNTIPOCOMPROBANTE()      Sets the current record's "CN_TIPO_COMPROBANTE" value
 * @method CN_CONTROL_CAD      setCNTIPOCOMPROBANTE3()     Sets the current record's "CN_TIPO_COMPROBANTE_3" value
 * @method CN_CONTROL_CAD      setCNTIPOCOMPROBANTE4()     Sets the current record's "CN_TIPO_COMPROBANTE_4" value
 * @method CN_CONTROL_CAD      setCNTIPOCOMPROBANTE5()     Sets the current record's "CN_TIPO_COMPROBANTE_5" value
 * @method CN_CONTROL_CAD      setCNVIGENCIA()             Sets the current record's "CN_VIGENCIA" value
 * @method CN_CONTROL_CAD      setCNCENTROOPERACION()      Sets the current record's "CN_CENTRO_OPERACION" value
 * @method CN_CONTROL_CAD      setCNCENTROOPERACION8()     Sets the current record's "CN_CENTRO_OPERACION_8" value
 * @method CN_CONTROL_CAD      setCNCENTROOPERACION9()     Sets the current record's "CN_CENTRO_OPERACION_9" value
 * @method CN_CONTROL_CAD      setCNCENTROOPERACION10()    Sets the current record's "CN_CENTRO_OPERACION_10" value
 * @method CN_CONTROL_CAD      setCNDOCUMENTO()            Sets the current record's "CN_DOCUMENTO" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO7()           Sets the current record's "CN_DOCUMENTO_7" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO8()           Sets the current record's "CN_DOCUMENTO_8" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO9()           Sets the current record's "CN_DOCUMENTO_9" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO10()          Sets the current record's "CN_DOCUMENTO_10" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO11()          Sets the current record's "CN_DOCUMENTO_11" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO12()          Sets the current record's "CN_DOCUMENTO_12" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO13()          Sets the current record's "CN_DOCUMENTO_13" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO14()          Sets the current record's "CN_DOCUMENTO_14" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO15()          Sets the current record's "CN_DOCUMENTO_15" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO16()          Sets the current record's "CN_DOCUMENTO_16" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO17()          Sets the current record's "CN_DOCUMENTO_17" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO18()          Sets the current record's "CN_DOCUMENTO_18" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO19()          Sets the current record's "CN_DOCUMENTO_19" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO20()          Sets the current record's "CN_DOCUMENTO_20" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO21()          Sets the current record's "CN_DOCUMENTO_21" collection
 * @method CN_CONTROL_CAD      setCNCENTROOPERACION2()     Sets the current record's "CN_CENTRO_OPERACION_2" value
 * @method CN_CONTROL_CAD      setCNCENTROOPERACION3()     Sets the current record's "CN_CENTRO_OPERACION_3" value
 * @method CN_CONTROL_CAD      setCNCENTROOPERACION4()     Sets the current record's "CN_CENTRO_OPERACION_4" value
 * @method CN_CONTROL_CAD      setCNTIPOCOMPROBANTE7()     Sets the current record's "CN_TIPO_COMPROBANTE_7" value
 * @method CN_CONTROL_CAD      setCNTIPOCOMPROBANTE8()     Sets the current record's "CN_TIPO_COMPROBANTE_8" value
 * @method CN_CONTROL_CAD      setCNTIPOCOMPROBANTE9()     Sets the current record's "CN_TIPO_COMPROBANTE_9" value
 * @method CN_CONTROL_CAD      setCNDOCUMENTO2()           Sets the current record's "CN_DOCUMENTO_2" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO3()           Sets the current record's "CN_DOCUMENTO_3" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO4()           Sets the current record's "CN_DOCUMENTO_4" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO5()           Sets the current record's "CN_DOCUMENTO_5" collection
 * @method CN_CONTROL_CAD      setCNDOCUMENTO6()           Sets the current record's "CN_DOCUMENTO_6" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_CONTROL_CAD extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_CONTROL_CAD');
        $this->hasColumn('id_cad', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_vigencia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', '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_periodo_contable', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_comprobante', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_cad', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('tot_debito', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('tot_credito', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ter_genero', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ter_reviso', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ter_aprobo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('CN_TIPO_COMPROBANTE', array(
             'local' => 'id_cia',
             'foreign' => 'id_tipo_comprobante'));

        $this->hasOne('CN_TIPO_COMPROBANTE as CN_TIPO_COMPROBANTE_3', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_tipo_comprobante'));

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

        $this->hasOne('CN_TIPO_COMPROBANTE as CN_TIPO_COMPROBANTE_5', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_VIGENCIA', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('CN_CENTRO_OPERACION', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasOne('CN_CENTRO_OPERACION as CN_CENTRO_OPERACION_8', array(
             'local' => 'id_cia',
             'foreign' => 'id_cen_op'));

        $this->hasOne('CN_CENTRO_OPERACION as CN_CENTRO_OPERACION_9', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cia'));

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

        $this->hasMany('CN_DOCUMENTO', array(
             'local' => 'id_cad',
             'foreign' => 'id_cad'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_7', array(
             'local' => 'id_cad',
             'foreign' => 'id_vigencia'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_8', array(
             'local' => 'id_cad',
             'foreign' => 'id_cen_op'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_9', array(
             'local' => 'id_cad',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_10', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cad'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_11', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_12', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cen_op'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_13', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_14', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cad'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_15', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_vigencia'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_16', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_17', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_18', array(
             'local' => 'id_cia',
             'foreign' => 'id_cad'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_19', array(
             'local' => 'id_cia',
             'foreign' => 'id_vigencia'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_20', array(
             'local' => 'id_cia',
             'foreign' => 'id_cen_op'));

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

        $this->hasOne('CN_CENTRO_OPERACION as CN_CENTRO_OPERACION_2', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_CENTRO_OPERACION as CN_CENTRO_OPERACION_3', array(
             'local' => 'id_cia',
             'foreign' => 'id_cen_op'));

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

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

        $this->hasOne('CN_TIPO_COMPROBANTE as CN_TIPO_COMPROBANTE_8', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_tipo_comprobante'));

        $this->hasOne('CN_TIPO_COMPROBANTE as CN_TIPO_COMPROBANTE_9', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_2', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cad'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_3', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cad'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_4', array(
             'local' => 'id_cia',
             'foreign' => 'id_cad'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_5', array(
             'local' => 'id_cad',
             'foreign' => 'id_vigencia'));

        $this->hasMany('CN_DOCUMENTO as CN_DOCUMENTO_6', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));
    }
}