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

/**
 * BaseCENTRO_OPERACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cen_op
 * @property integer $id_cia
 * @property string $nom_cen_op
 * @property string $descr_cen_op
 * @property integer $activo
 * @property string $prefijo
 * @property integer $id_depto
 * @property integer $codmun
 * @property COMPANIA $COMPANIA
 * @property Doctrine_Collection $IN_USUARIO_CEN_OP
 * @property Doctrine_Collection $IN_TABLE_VIG_SEQ_CEN
 * @property Doctrine_Collection $IN_TABLE_VIG_SEQ
 * @property Doctrine_Collection $IN_SOLI_COMPRA
 * @property Doctrine_Collection $IN_SALDO_INVENTARIO_DV
 * @property Doctrine_Collection $IN_SALDO_INVENTARIO_CON
 * @property Doctrine_Collection $IN_MOVIMIENTOS_DV
 * @property Doctrine_Collection $IN_MOVIMIENTOS_DV_5
 * @property Doctrine_Collection $IN_MOVIMIENTOS_CON
 * @property Doctrine_Collection $IN_MOVIMIENTOS_CON_2
 * @property Doctrine_Collection $IN_INVENTARIO_DV
 * @property Doctrine_Collection $IN_INVENTARIO_CON
 * @property Doctrine_Collection $IN_FIRMA_CONTRATO
 * @property Doctrine_Collection $IN_ESTRUCTURA
 * @property Doctrine_Collection $IN_DET_MOV_DV
 * @property Doctrine_Collection $IN_DET_MOV_CON
 * @property Doctrine_Collection $IN_COTIZACION
 * @property Doctrine_Collection $IN_CENTRO_OPERACION_PREF
 * @property Doctrine_Collection $IN_ALMACENISTA
 * @property Doctrine_Collection $ACTIVIDAD_FORMACION
 * @property Doctrine_Collection $ACTIVIDAD
 * @property Doctrine_Collection $RH_DP
 * @property Doctrine_Collection $IN_MOVIMIENTOS_DV_12
 * @property Doctrine_Collection $IN_MOVIMIENTOS_DV_8
 * @property DEPARTAMENTO $DEPARTAMENTO
 * @property MUNICIPIOS $MUNICIPIOS
 * @property Doctrine_Collection $IN_MOVIMIENTOS_DV_2
 * @property Doctrine_Collection $IN_INVENTARIO_CONSUMO
 * 
 * @method integer             getIdCenOp()                  Returns the current record's "id_cen_op" value
 * @method integer             getIdCia()                    Returns the current record's "id_cia" value
 * @method string              getNomCenOp()                 Returns the current record's "nom_cen_op" value
 * @method string              getDescrCenOp()               Returns the current record's "descr_cen_op" value
 * @method integer             getActivo()                   Returns the current record's "activo" value
 * @method string              getPrefijo()                  Returns the current record's "prefijo" value
 * @method integer             getIdDepto()                  Returns the current record's "id_depto" value
 * @method integer             getCodmun()                   Returns the current record's "codmun" value
 * @method COMPANIA            getCOMPANIA()                 Returns the current record's "COMPANIA" value
 * @method Doctrine_Collection getINUSUARIOCENOP()           Returns the current record's "IN_USUARIO_CEN_OP" collection
 * @method Doctrine_Collection getINTABLEVIGSEQCEN()         Returns the current record's "IN_TABLE_VIG_SEQ_CEN" collection
 * @method Doctrine_Collection getINTABLEVIGSEQ()            Returns the current record's "IN_TABLE_VIG_SEQ" collection
 * @method Doctrine_Collection getINSOLICOMPRA()             Returns the current record's "IN_SOLI_COMPRA" collection
 * @method Doctrine_Collection getINSALDOINVENTARIODV()      Returns the current record's "IN_SALDO_INVENTARIO_DV" collection
 * @method Doctrine_Collection getINSALDOINVENTARIOCON()     Returns the current record's "IN_SALDO_INVENTARIO_CON" collection
 * @method Doctrine_Collection getINMOVIMIENTOSDV()          Returns the current record's "IN_MOVIMIENTOS_DV" collection
 * @method Doctrine_Collection getINMOVIMIENTOSDV5()         Returns the current record's "IN_MOVIMIENTOS_DV_5" collection
 * @method Doctrine_Collection getINMOVIMIENTOSCON()         Returns the current record's "IN_MOVIMIENTOS_CON" collection
 * @method Doctrine_Collection getINMOVIMIENTOSCON2()        Returns the current record's "IN_MOVIMIENTOS_CON_2" collection
 * @method Doctrine_Collection getININVENTARIODV()           Returns the current record's "IN_INVENTARIO_DV" collection
 * @method Doctrine_Collection getININVENTARIOCON()          Returns the current record's "IN_INVENTARIO_CON" collection
 * @method Doctrine_Collection getINFIRMACONTRATO()          Returns the current record's "IN_FIRMA_CONTRATO" collection
 * @method Doctrine_Collection getINESTRUCTURA()             Returns the current record's "IN_ESTRUCTURA" collection
 * @method Doctrine_Collection getINDETMOVDV()               Returns the current record's "IN_DET_MOV_DV" collection
 * @method Doctrine_Collection getINDETMOVCON()              Returns the current record's "IN_DET_MOV_CON" collection
 * @method Doctrine_Collection getINCOTIZACION()             Returns the current record's "IN_COTIZACION" collection
 * @method Doctrine_Collection getINCENTROOPERACIONPREF()    Returns the current record's "IN_CENTRO_OPERACION_PREF" collection
 * @method Doctrine_Collection getINALMACENISTA()            Returns the current record's "IN_ALMACENISTA" collection
 * @method Doctrine_Collection getACTIVIDADFORMACION()       Returns the current record's "ACTIVIDAD_FORMACION" collection
 * @method Doctrine_Collection getACTIVIDAD()                Returns the current record's "ACTIVIDAD" collection
 * @method Doctrine_Collection getRHDP()                     Returns the current record's "RH_DP" collection
 * @method Doctrine_Collection getINMOVIMIENTOSDV12()        Returns the current record's "IN_MOVIMIENTOS_DV_12" collection
 * @method Doctrine_Collection getINMOVIMIENTOSDV8()         Returns the current record's "IN_MOVIMIENTOS_DV_8" collection
 * @method DEPARTAMENTO        getDEPARTAMENTO()             Returns the current record's "DEPARTAMENTO" value
 * @method MUNICIPIOS          getMUNICIPIOS()               Returns the current record's "MUNICIPIOS" value
 * @method Doctrine_Collection getINMOVIMIENTOSDV2()         Returns the current record's "IN_MOVIMIENTOS_DV_2" collection
 * @method Doctrine_Collection getININVENTARIOCONSUMO()      Returns the current record's "IN_INVENTARIO_CONSUMO" collection
 * @method CENTRO_OPERACION    setIdCenOp()                  Sets the current record's "id_cen_op" value
 * @method CENTRO_OPERACION    setIdCia()                    Sets the current record's "id_cia" value
 * @method CENTRO_OPERACION    setNomCenOp()                 Sets the current record's "nom_cen_op" value
 * @method CENTRO_OPERACION    setDescrCenOp()               Sets the current record's "descr_cen_op" value
 * @method CENTRO_OPERACION    setActivo()                   Sets the current record's "activo" value
 * @method CENTRO_OPERACION    setPrefijo()                  Sets the current record's "prefijo" value
 * @method CENTRO_OPERACION    setIdDepto()                  Sets the current record's "id_depto" value
 * @method CENTRO_OPERACION    setCodmun()                   Sets the current record's "codmun" value
 * @method CENTRO_OPERACION    setCOMPANIA()                 Sets the current record's "COMPANIA" value
 * @method CENTRO_OPERACION    setINUSUARIOCENOP()           Sets the current record's "IN_USUARIO_CEN_OP" collection
 * @method CENTRO_OPERACION    setINTABLEVIGSEQCEN()         Sets the current record's "IN_TABLE_VIG_SEQ_CEN" collection
 * @method CENTRO_OPERACION    setINTABLEVIGSEQ()            Sets the current record's "IN_TABLE_VIG_SEQ" collection
 * @method CENTRO_OPERACION    setINSOLICOMPRA()             Sets the current record's "IN_SOLI_COMPRA" collection
 * @method CENTRO_OPERACION    setINSALDOINVENTARIODV()      Sets the current record's "IN_SALDO_INVENTARIO_DV" collection
 * @method CENTRO_OPERACION    setINSALDOINVENTARIOCON()     Sets the current record's "IN_SALDO_INVENTARIO_CON" collection
 * @method CENTRO_OPERACION    setINMOVIMIENTOSDV()          Sets the current record's "IN_MOVIMIENTOS_DV" collection
 * @method CENTRO_OPERACION    setINMOVIMIENTOSDV5()         Sets the current record's "IN_MOVIMIENTOS_DV_5" collection
 * @method CENTRO_OPERACION    setINMOVIMIENTOSCON()         Sets the current record's "IN_MOVIMIENTOS_CON" collection
 * @method CENTRO_OPERACION    setINMOVIMIENTOSCON2()        Sets the current record's "IN_MOVIMIENTOS_CON_2" collection
 * @method CENTRO_OPERACION    setININVENTARIODV()           Sets the current record's "IN_INVENTARIO_DV" collection
 * @method CENTRO_OPERACION    setININVENTARIOCON()          Sets the current record's "IN_INVENTARIO_CON" collection
 * @method CENTRO_OPERACION    setINFIRMACONTRATO()          Sets the current record's "IN_FIRMA_CONTRATO" collection
 * @method CENTRO_OPERACION    setINESTRUCTURA()             Sets the current record's "IN_ESTRUCTURA" collection
 * @method CENTRO_OPERACION    setINDETMOVDV()               Sets the current record's "IN_DET_MOV_DV" collection
 * @method CENTRO_OPERACION    setINDETMOVCON()              Sets the current record's "IN_DET_MOV_CON" collection
 * @method CENTRO_OPERACION    setINCOTIZACION()             Sets the current record's "IN_COTIZACION" collection
 * @method CENTRO_OPERACION    setINCENTROOPERACIONPREF()    Sets the current record's "IN_CENTRO_OPERACION_PREF" collection
 * @method CENTRO_OPERACION    setINALMACENISTA()            Sets the current record's "IN_ALMACENISTA" collection
 * @method CENTRO_OPERACION    setACTIVIDADFORMACION()       Sets the current record's "ACTIVIDAD_FORMACION" collection
 * @method CENTRO_OPERACION    setACTIVIDAD()                Sets the current record's "ACTIVIDAD" collection
 * @method CENTRO_OPERACION    setRHDP()                     Sets the current record's "RH_DP" collection
 * @method CENTRO_OPERACION    setINMOVIMIENTOSDV12()        Sets the current record's "IN_MOVIMIENTOS_DV_12" collection
 * @method CENTRO_OPERACION    setINMOVIMIENTOSDV8()         Sets the current record's "IN_MOVIMIENTOS_DV_8" collection
 * @method CENTRO_OPERACION    setDEPARTAMENTO()             Sets the current record's "DEPARTAMENTO" value
 * @method CENTRO_OPERACION    setMUNICIPIOS()               Sets the current record's "MUNICIPIOS" value
 * @method CENTRO_OPERACION    setINMOVIMIENTOSDV2()         Sets the current record's "IN_MOVIMIENTOS_DV_2" collection
 * @method CENTRO_OPERACION    setININVENTARIOCONSUMO()      Sets the current record's "IN_INVENTARIO_CONSUMO" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCENTRO_OPERACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CENTRO_OPERACION');
        $this->hasColumn('id_cen_op', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_cia', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nom_cen_op', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('descr_cen_op', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('activo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('prefijo', 'string', 10, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('id_depto', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('codmun', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasMany('IN_USUARIO_CEN_OP', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_TABLE_VIG_SEQ_CEN', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_TABLE_VIG_SEQ', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_SOLI_COMPRA', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_SALDO_INVENTARIO_DV', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_SALDO_INVENTARIO_CON', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_MOVIMIENTOS_DV', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_MOVIMIENTOS_DV as IN_MOVIMIENTOS_DV_5', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op_fin'));

        $this->hasMany('IN_MOVIMIENTOS_CON', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_2', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op_fin'));

        $this->hasMany('IN_INVENTARIO_DV', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_INVENTARIO_CON', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_FIRMA_CONTRATO', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_ESTRUCTURA', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_DET_MOV_DV', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_DET_MOV_CON', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_COTIZACION', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_CENTRO_OPERACION_PREF', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_ALMACENISTA', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('ACTIVIDAD_FORMACION', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('ACTIVIDAD', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('RH_DP', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_MOVIMIENTOS_DV as IN_MOVIMIENTOS_DV_12', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op_fin'));

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

        $this->hasOne('DEPARTAMENTO', array(
             'local' => 'id_depto',
             'foreign' => 'id_depto'));

        $this->hasOne('MUNICIPIOS', array(
             'local' => 'codmun',
             'foreign' => 'codmun'));

        $this->hasMany('IN_MOVIMIENTOS_DV as IN_MOVIMIENTOS_DV_2', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op_fin'));

        $this->hasMany('IN_INVENTARIO_CONSUMO', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));
    }
}