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

/**
 * BaseIN_INVENTARIO_CON
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_inventario_con
 * @property integer $id_cen_op
 * @property integer $id_espacio
 * @property integer $id_mae_ter
 * @property integer $id_tipo_almacenamiento
 * @property integer $codigo
 * @property integer $id_linea
 * @property integer $id_clase
 * @property integer $id_catalogo
 * @property integer $coordenada_x
 * @property integer $coordenada_y
 * @property string $descripcion
 * @property integer $estado
 * @property integer $entradas
 * @property integer $salidas
 * @property integer $saldo
 * @property decimal $valor_unitario
 * @property timestamp $fecha_valor_ult
 * @property decimal $valor_promedio
 * @property timestamp $fecha_prom_ult
 * @property integer $en_proceso
 * @property timestamp $fecha_ingreso
 * @property IN_ESPACIO $IN_ESPACIO
 * @property IN_CATALOGO $IN_CATALOGO
 * @property IN_CATALOGO $IN_CATALOGO_3
 * @property IN_CATALOGO $IN_CATALOGO_4
 * @property IN_CATALOGO $IN_CATALOGO_5
 * @property IN_CATALOGO $IN_CATALOGO_6
 * @property IN_CATALOGO $IN_CATALOGO_7
 * @property IN_CATALOGO $IN_CATALOGO_8
 * @property IN_CATALOGO $IN_CATALOGO_9
 * @property IN_CATALOGO $IN_CATALOGO_10
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @property IN_TIPO_ALMACENAMIENTO $IN_TIPO_ALMACENAMIENTO
 * @property INTERCEROS $INTERCEROS
 * @property Doctrine_Collection $IN_SALDO_INVENTARIO_CON
 * @property Doctrine_Collection $IN_DET_MOV_CON
 * @property IN_CATALOGO $IN_CATALOGO_2
 * @property Doctrine_Collection $IN_DET_MOV_CON_28
 * 
 * @method integer                getIdInventarioCon()         Returns the current record's "id_inventario_con" value
 * @method integer                getIdCenOp()                 Returns the current record's "id_cen_op" value
 * @method integer                getIdEspacio()               Returns the current record's "id_espacio" value
 * @method integer                getIdMaeTer()                Returns the current record's "id_mae_ter" value
 * @method integer                getIdTipoAlmacenamiento()    Returns the current record's "id_tipo_almacenamiento" value
 * @method integer                getCodigo()                  Returns the current record's "codigo" value
 * @method integer                getIdLinea()                 Returns the current record's "id_linea" value
 * @method integer                getIdClase()                 Returns the current record's "id_clase" value
 * @method integer                getIdCatalogo()              Returns the current record's "id_catalogo" value
 * @method integer                getCoordenadaX()             Returns the current record's "coordenada_x" value
 * @method integer                getCoordenadaY()             Returns the current record's "coordenada_y" value
 * @method string                 getDescripcion()             Returns the current record's "descripcion" value
 * @method integer                getEstado()                  Returns the current record's "estado" value
 * @method integer                getEntradas()                Returns the current record's "entradas" value
 * @method integer                getSalidas()                 Returns the current record's "salidas" value
 * @method integer                getSaldo()                   Returns the current record's "saldo" value
 * @method decimal                getValorUnitario()           Returns the current record's "valor_unitario" value
 * @method timestamp              getFechaValorUlt()           Returns the current record's "fecha_valor_ult" value
 * @method decimal                getValorPromedio()           Returns the current record's "valor_promedio" value
 * @method timestamp              getFechaPromUlt()            Returns the current record's "fecha_prom_ult" value
 * @method integer                getEnProceso()               Returns the current record's "en_proceso" value
 * @method timestamp              getFechaIngreso()            Returns the current record's "fecha_ingreso" value
 * @method IN_ESPACIO             getINESPACIO()               Returns the current record's "IN_ESPACIO" value
 * @method IN_CATALOGO            getINCATALOGO()              Returns the current record's "IN_CATALOGO" value
 * @method IN_CATALOGO            getINCATALOGO3()             Returns the current record's "IN_CATALOGO_3" value
 * @method IN_CATALOGO            getINCATALOGO4()             Returns the current record's "IN_CATALOGO_4" value
 * @method IN_CATALOGO            getINCATALOGO5()             Returns the current record's "IN_CATALOGO_5" value
 * @method IN_CATALOGO            getINCATALOGO6()             Returns the current record's "IN_CATALOGO_6" value
 * @method IN_CATALOGO            getINCATALOGO7()             Returns the current record's "IN_CATALOGO_7" value
 * @method IN_CATALOGO            getINCATALOGO8()             Returns the current record's "IN_CATALOGO_8" value
 * @method IN_CATALOGO            getINCATALOGO9()             Returns the current record's "IN_CATALOGO_9" value
 * @method IN_CATALOGO            getINCATALOGO10()            Returns the current record's "IN_CATALOGO_10" value
 * @method CENTRO_OPERACION       getCENTROOPERACION()         Returns the current record's "CENTRO_OPERACION" value
 * @method IN_TIPO_ALMACENAMIENTO getINTIPOALMACENAMIENTO()    Returns the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method INTERCEROS             getINTERCEROS()              Returns the current record's "INTERCEROS" value
 * @method Doctrine_Collection    getINSALDOINVENTARIOCON()    Returns the current record's "IN_SALDO_INVENTARIO_CON" collection
 * @method Doctrine_Collection    getINDETMOVCON()             Returns the current record's "IN_DET_MOV_CON" collection
 * @method IN_CATALOGO            getINCATALOGO2()             Returns the current record's "IN_CATALOGO_2" value
 * @method Doctrine_Collection    getINDETMOVCON28()           Returns the current record's "IN_DET_MOV_CON_28" collection
 * @method IN_INVENTARIO_CON      setIdInventarioCon()         Sets the current record's "id_inventario_con" value
 * @method IN_INVENTARIO_CON      setIdCenOp()                 Sets the current record's "id_cen_op" value
 * @method IN_INVENTARIO_CON      setIdEspacio()               Sets the current record's "id_espacio" value
 * @method IN_INVENTARIO_CON      setIdMaeTer()                Sets the current record's "id_mae_ter" value
 * @method IN_INVENTARIO_CON      setIdTipoAlmacenamiento()    Sets the current record's "id_tipo_almacenamiento" value
 * @method IN_INVENTARIO_CON      setCodigo()                  Sets the current record's "codigo" value
 * @method IN_INVENTARIO_CON      setIdLinea()                 Sets the current record's "id_linea" value
 * @method IN_INVENTARIO_CON      setIdClase()                 Sets the current record's "id_clase" value
 * @method IN_INVENTARIO_CON      setIdCatalogo()              Sets the current record's "id_catalogo" value
 * @method IN_INVENTARIO_CON      setCoordenadaX()             Sets the current record's "coordenada_x" value
 * @method IN_INVENTARIO_CON      setCoordenadaY()             Sets the current record's "coordenada_y" value
 * @method IN_INVENTARIO_CON      setDescripcion()             Sets the current record's "descripcion" value
 * @method IN_INVENTARIO_CON      setEstado()                  Sets the current record's "estado" value
 * @method IN_INVENTARIO_CON      setEntradas()                Sets the current record's "entradas" value
 * @method IN_INVENTARIO_CON      setSalidas()                 Sets the current record's "salidas" value
 * @method IN_INVENTARIO_CON      setSaldo()                   Sets the current record's "saldo" value
 * @method IN_INVENTARIO_CON      setValorUnitario()           Sets the current record's "valor_unitario" value
 * @method IN_INVENTARIO_CON      setFechaValorUlt()           Sets the current record's "fecha_valor_ult" value
 * @method IN_INVENTARIO_CON      setValorPromedio()           Sets the current record's "valor_promedio" value
 * @method IN_INVENTARIO_CON      setFechaPromUlt()            Sets the current record's "fecha_prom_ult" value
 * @method IN_INVENTARIO_CON      setEnProceso()               Sets the current record's "en_proceso" value
 * @method IN_INVENTARIO_CON      setFechaIngreso()            Sets the current record's "fecha_ingreso" value
 * @method IN_INVENTARIO_CON      setINESPACIO()               Sets the current record's "IN_ESPACIO" value
 * @method IN_INVENTARIO_CON      setINCATALOGO()              Sets the current record's "IN_CATALOGO" value
 * @method IN_INVENTARIO_CON      setINCATALOGO3()             Sets the current record's "IN_CATALOGO_3" value
 * @method IN_INVENTARIO_CON      setINCATALOGO4()             Sets the current record's "IN_CATALOGO_4" value
 * @method IN_INVENTARIO_CON      setINCATALOGO5()             Sets the current record's "IN_CATALOGO_5" value
 * @method IN_INVENTARIO_CON      setINCATALOGO6()             Sets the current record's "IN_CATALOGO_6" value
 * @method IN_INVENTARIO_CON      setINCATALOGO7()             Sets the current record's "IN_CATALOGO_7" value
 * @method IN_INVENTARIO_CON      setINCATALOGO8()             Sets the current record's "IN_CATALOGO_8" value
 * @method IN_INVENTARIO_CON      setINCATALOGO9()             Sets the current record's "IN_CATALOGO_9" value
 * @method IN_INVENTARIO_CON      setINCATALOGO10()            Sets the current record's "IN_CATALOGO_10" value
 * @method IN_INVENTARIO_CON      setCENTROOPERACION()         Sets the current record's "CENTRO_OPERACION" value
 * @method IN_INVENTARIO_CON      setINTIPOALMACENAMIENTO()    Sets the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method IN_INVENTARIO_CON      setINTERCEROS()              Sets the current record's "INTERCEROS" value
 * @method IN_INVENTARIO_CON      setINSALDOINVENTARIOCON()    Sets the current record's "IN_SALDO_INVENTARIO_CON" collection
 * @method IN_INVENTARIO_CON      setINDETMOVCON()             Sets the current record's "IN_DET_MOV_CON" collection
 * @method IN_INVENTARIO_CON      setINCATALOGO2()             Sets the current record's "IN_CATALOGO_2" value
 * @method IN_INVENTARIO_CON      setINDETMOVCON28()           Sets the current record's "IN_DET_MOV_CON_28" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_INVENTARIO_CON extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_INVENTARIO_CON');
        $this->hasColumn('id_inventario_con', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_espacio', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_almacenamiento', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('codigo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_linea', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_clase', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_catalogo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('coordenada_x', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('coordenada_y', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('entradas', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('salidas', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('saldo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_unitario', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('fecha_valor_ult', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor_promedio', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('fecha_prom_ult', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('en_proceso', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_ingreso', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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

        $this->hasOne('IN_CATALOGO', array(
             'local' => 'id_linea',
             'foreign' => 'id_catalogo'));

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

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_4', array(
             'local' => 'id_linea',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_5', array(
             'local' => 'id_clase',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_6', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_7', array(
             'local' => 'id_linea',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_8', array(
             'local' => 'id_clase',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_9', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_10', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_linea'));

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

        $this->hasOne('IN_TIPO_ALMACENAMIENTO', array(
             'local' => 'id_tipo_almacenamiento',
             'foreign' => 'id_tipo_almacenamiento'));

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

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

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

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_2', array(
             'local' => 'id_clase',
             'foreign' => 'id_catalogo'));

        $this->hasMany('IN_DET_MOV_CON as IN_DET_MOV_CON_28', array(
             'local' => 'id_inventario_con',
             'foreign' => 'id_inventario_con'));
    }
}