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

/**
 * BaseCN_DOCUMENTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_documento
 * @property integer $id_cad
 * @property integer $id_vigencia
 * @property integer $id_cen_op
 * @property integer $id_cia
 * @property integer $id_td
 * @property integer $id_mae_ter
 * @property string $descr_mto
 * @property string $doc_soporte
 * @property timestamp $fecha_soporte
 * @property decimal $tot_debito
 * @property decimal $tot_credito
 * @property integer $id_tipo_doc
 * @property CN_TD $CN_TD
 * @property CN_MAE_TER $CN_MAE_TER
 * @property CN_MAE_TER $CN_MAE_TER_3
 * @property CN_MAE_TER $CN_MAE_TER_4
 * @property CN_MAE_TER $CN_MAE_TER_5
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_7
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_8
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_9
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_10
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_11
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_12
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_13
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_14
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_15
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_16
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_17
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_18
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_19
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_20
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_21
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_22
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_23
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_24
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_25
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_26
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_27
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_28
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_29
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_30
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_31
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_32
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_33
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_34
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_35
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_36
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_37
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_38
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_39
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_40
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_41
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_42
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_43
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_44
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_45
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_2
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_3
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_4
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_5
 * @property CN_CONTROL_CAD $CN_CONTROL_CAD_6
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_2
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_3
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_4
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_5
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_6
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_7
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_8
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_9
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_10
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_11
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_12
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_13
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_14
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_15
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_16
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_17
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_18
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_19
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_20
 * @property Doctrine_Collection $CN_MOVIMIENTO_CONTABLE_21
 * 
 * @method integer             getIdDocumento()               Returns the current record's "id_documento" value
 * @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             getIdTd()                      Returns the current record's "id_td" value
 * @method integer             getIdMaeTer()                  Returns the current record's "id_mae_ter" value
 * @method string              getDescrMto()                  Returns the current record's "descr_mto" value
 * @method string              getDocSoporte()                Returns the current record's "doc_soporte" value
 * @method timestamp           getFechaSoporte()              Returns the current record's "fecha_soporte" value
 * @method decimal             getTotDebito()                 Returns the current record's "tot_debito" value
 * @method decimal             getTotCredito()                Returns the current record's "tot_credito" value
 * @method integer             getIdTipoDoc()                 Returns the current record's "id_tipo_doc" value
 * @method CN_TD               getCNTD()                      Returns the current record's "CN_TD" value
 * @method CN_MAE_TER          getCNMAETER()                  Returns the current record's "CN_MAE_TER" value
 * @method CN_MAE_TER          getCNMAETER3()                 Returns the current record's "CN_MAE_TER_3" value
 * @method CN_MAE_TER          getCNMAETER4()                 Returns the current record's "CN_MAE_TER_4" value
 * @method CN_MAE_TER          getCNMAETER5()                 Returns the current record's "CN_MAE_TER_5" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD()              Returns the current record's "CN_CONTROL_CAD" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD7()             Returns the current record's "CN_CONTROL_CAD_7" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD8()             Returns the current record's "CN_CONTROL_CAD_8" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD9()             Returns the current record's "CN_CONTROL_CAD_9" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD10()            Returns the current record's "CN_CONTROL_CAD_10" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD11()            Returns the current record's "CN_CONTROL_CAD_11" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD12()            Returns the current record's "CN_CONTROL_CAD_12" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD13()            Returns the current record's "CN_CONTROL_CAD_13" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD14()            Returns the current record's "CN_CONTROL_CAD_14" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD15()            Returns the current record's "CN_CONTROL_CAD_15" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD16()            Returns the current record's "CN_CONTROL_CAD_16" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD17()            Returns the current record's "CN_CONTROL_CAD_17" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD18()            Returns the current record's "CN_CONTROL_CAD_18" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD19()            Returns the current record's "CN_CONTROL_CAD_19" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD20()            Returns the current record's "CN_CONTROL_CAD_20" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD21()            Returns the current record's "CN_CONTROL_CAD_21" value
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE()      Returns the current record's "CN_MOVIMIENTO_CONTABLE" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE22()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_22" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE23()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_23" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE24()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_24" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE25()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_25" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE26()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_26" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE27()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_27" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE28()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_28" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE29()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_29" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE30()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_30" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE31()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_31" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE32()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_32" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE33()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_33" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE34()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_34" collection
 * @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 Doctrine_Collection getCNMOVIMIENTOCONTABLE38()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_38" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE39()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_39" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE40()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_40" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE41()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_41" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE42()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_42" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE43()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_43" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE44()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_44" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE45()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_45" collection
 * @method CN_CONTROL_CAD      getCNCONTROLCAD2()             Returns the current record's "CN_CONTROL_CAD_2" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD3()             Returns the current record's "CN_CONTROL_CAD_3" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD4()             Returns the current record's "CN_CONTROL_CAD_4" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD5()             Returns the current record's "CN_CONTROL_CAD_5" value
 * @method CN_CONTROL_CAD      getCNCONTROLCAD6()             Returns the current record's "CN_CONTROL_CAD_6" value
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE2()     Returns the current record's "CN_MOVIMIENTO_CONTABLE_2" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE3()     Returns the current record's "CN_MOVIMIENTO_CONTABLE_3" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE4()     Returns the current record's "CN_MOVIMIENTO_CONTABLE_4" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE5()     Returns the current record's "CN_MOVIMIENTO_CONTABLE_5" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE6()     Returns the current record's "CN_MOVIMIENTO_CONTABLE_6" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE7()     Returns the current record's "CN_MOVIMIENTO_CONTABLE_7" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE8()     Returns the current record's "CN_MOVIMIENTO_CONTABLE_8" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE9()     Returns the current record's "CN_MOVIMIENTO_CONTABLE_9" 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 getCNMOVIMIENTOCONTABLE13()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_13" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE14()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_14" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE15()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_15" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE16()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_16" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE17()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_17" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE18()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_18" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE19()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_19" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE20()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_20" collection
 * @method Doctrine_Collection getCNMOVIMIENTOCONTABLE21()    Returns the current record's "CN_MOVIMIENTO_CONTABLE_21" collection
 * @method CN_DOCUMENTO        setIdDocumento()               Sets the current record's "id_documento" value
 * @method CN_DOCUMENTO        setIdCad()                     Sets the current record's "id_cad" value
 * @method CN_DOCUMENTO        setIdVigencia()                Sets the current record's "id_vigencia" value
 * @method CN_DOCUMENTO        setIdCenOp()                   Sets the current record's "id_cen_op" value
 * @method CN_DOCUMENTO        setIdCia()                     Sets the current record's "id_cia" value
 * @method CN_DOCUMENTO        setIdTd()                      Sets the current record's "id_td" value
 * @method CN_DOCUMENTO        setIdMaeTer()                  Sets the current record's "id_mae_ter" value
 * @method CN_DOCUMENTO        setDescrMto()                  Sets the current record's "descr_mto" value
 * @method CN_DOCUMENTO        setDocSoporte()                Sets the current record's "doc_soporte" value
 * @method CN_DOCUMENTO        setFechaSoporte()              Sets the current record's "fecha_soporte" value
 * @method CN_DOCUMENTO        setTotDebito()                 Sets the current record's "tot_debito" value
 * @method CN_DOCUMENTO        setTotCredito()                Sets the current record's "tot_credito" value
 * @method CN_DOCUMENTO        setIdTipoDoc()                 Sets the current record's "id_tipo_doc" value
 * @method CN_DOCUMENTO        setCNTD()                      Sets the current record's "CN_TD" value
 * @method CN_DOCUMENTO        setCNMAETER()                  Sets the current record's "CN_MAE_TER" value
 * @method CN_DOCUMENTO        setCNMAETER3()                 Sets the current record's "CN_MAE_TER_3" value
 * @method CN_DOCUMENTO        setCNMAETER4()                 Sets the current record's "CN_MAE_TER_4" value
 * @method CN_DOCUMENTO        setCNMAETER5()                 Sets the current record's "CN_MAE_TER_5" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD()              Sets the current record's "CN_CONTROL_CAD" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD7()             Sets the current record's "CN_CONTROL_CAD_7" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD8()             Sets the current record's "CN_CONTROL_CAD_8" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD9()             Sets the current record's "CN_CONTROL_CAD_9" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD10()            Sets the current record's "CN_CONTROL_CAD_10" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD11()            Sets the current record's "CN_CONTROL_CAD_11" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD12()            Sets the current record's "CN_CONTROL_CAD_12" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD13()            Sets the current record's "CN_CONTROL_CAD_13" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD14()            Sets the current record's "CN_CONTROL_CAD_14" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD15()            Sets the current record's "CN_CONTROL_CAD_15" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD16()            Sets the current record's "CN_CONTROL_CAD_16" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD17()            Sets the current record's "CN_CONTROL_CAD_17" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD18()            Sets the current record's "CN_CONTROL_CAD_18" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD19()            Sets the current record's "CN_CONTROL_CAD_19" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD20()            Sets the current record's "CN_CONTROL_CAD_20" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD21()            Sets the current record's "CN_CONTROL_CAD_21" value
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE()      Sets the current record's "CN_MOVIMIENTO_CONTABLE" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE22()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_22" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE23()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_23" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE24()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_24" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE25()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_25" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE26()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_26" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE27()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_27" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE28()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_28" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE29()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_29" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE30()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_30" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE31()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_31" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE32()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_32" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE33()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_33" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE34()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_34" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE35()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_35" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE36()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_36" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE37()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_37" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE38()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_38" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE39()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_39" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE40()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_40" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE41()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_41" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE42()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_42" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE43()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_43" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE44()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_44" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE45()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_45" collection
 * @method CN_DOCUMENTO        setCNCONTROLCAD2()             Sets the current record's "CN_CONTROL_CAD_2" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD3()             Sets the current record's "CN_CONTROL_CAD_3" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD4()             Sets the current record's "CN_CONTROL_CAD_4" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD5()             Sets the current record's "CN_CONTROL_CAD_5" value
 * @method CN_DOCUMENTO        setCNCONTROLCAD6()             Sets the current record's "CN_CONTROL_CAD_6" value
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE2()     Sets the current record's "CN_MOVIMIENTO_CONTABLE_2" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE3()     Sets the current record's "CN_MOVIMIENTO_CONTABLE_3" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE4()     Sets the current record's "CN_MOVIMIENTO_CONTABLE_4" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE5()     Sets the current record's "CN_MOVIMIENTO_CONTABLE_5" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE6()     Sets the current record's "CN_MOVIMIENTO_CONTABLE_6" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE7()     Sets the current record's "CN_MOVIMIENTO_CONTABLE_7" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE8()     Sets the current record's "CN_MOVIMIENTO_CONTABLE_8" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE9()     Sets the current record's "CN_MOVIMIENTO_CONTABLE_9" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE10()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_10" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE11()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_11" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE12()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_12" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE13()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_13" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE14()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_14" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE15()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_15" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE16()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_16" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE17()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_17" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE18()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_18" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE19()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_19" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE20()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_20" collection
 * @method CN_DOCUMENTO        setCNMOVIMIENTOCONTABLE21()    Sets the current record's "CN_MOVIMIENTO_CONTABLE_21" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_DOCUMENTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_DOCUMENTO');
        $this->hasColumn('id_documento', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $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_td', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('descr_mto', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('doc_soporte', 'string', 32, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 32,
             ));
        $this->hasColumn('fecha_soporte', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('tot_debito', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('tot_credito', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
    }

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

        $this->hasOne('CN_MAE_TER', array(
             'local' => 'id_cia',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('CN_MAE_TER as CN_MAE_TER_3', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

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

        $this->hasOne('CN_MAE_TER as CN_MAE_TER_5', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_CONTROL_CAD', array(
             'local' => 'id_cad',
             'foreign' => 'id_cad'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_7', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cad'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_8', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cad'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_9', array(
             'local' => 'id_cia',
             'foreign' => 'id_cad'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_10', array(
             'local' => 'id_cad',
             'foreign' => 'id_vigencia'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_11', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_12', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_vigencia'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_13', array(
             'local' => 'id_cia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_14', array(
             'local' => 'id_cad',
             'foreign' => 'id_cen_op'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_15', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cen_op'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_16', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

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

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_18', array(
             'local' => 'id_cad',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_19', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cia'));

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

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

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

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_22', array(
             'local' => 'id_documento',
             'foreign' => 'id_cad'));

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_23', array(
             'local' => 'id_documento',
             'foreign' => 'id_vigencia'));

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_24', array(
             'local' => 'id_documento',
             'foreign' => 'id_cen_op'));

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

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_26', array(
             'local' => 'id_cad',
             'foreign' => 'id_documento'));

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

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

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

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

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_31', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_documento'));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_2', array(
             'local' => 'id_cad',
             'foreign' => 'id_vigencia'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_3', array(
             'local' => 'id_cad',
             'foreign' => 'id_cen_op'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_4', array(
             'local' => 'id_cad',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_5', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cad'));

        $this->hasOne('CN_CONTROL_CAD as CN_CONTROL_CAD_6', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_2', array(
             'local' => 'id_cad',
             'foreign' => 'id_documento'));

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_3', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_documento'));

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_4', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_documento'));

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

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_6', array(
             'local' => 'id_documento',
             'foreign' => 'id_cad'));

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

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

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

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

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

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

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

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

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

        $this->hasMany('CN_MOVIMIENTO_CONTABLE as CN_MOVIMIENTO_CONTABLE_16', array(
             'local' => 'id_documento',
             'foreign' => 'id_cen_op'));

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

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

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

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

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