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

/**
 * BaseIN_INVENTARIO_CONSUMO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_inventario_consumo
 * @property integer $id_cen_op
 * @property integer $id_espacio
 * @property integer $id_mae_ter
 * @property integer $id_tipo_almcenamiento
 * @property integer $codigo
 * @property integer $id_linea
 * @property integer $id_clase
 * @property integer $id_catalogo
 * @property string $coordenada_x
 * @property string $coordenada_y
 * @property string $descripcion
 * @property integer $estado
 * @property timestamp $fecha_ingreso
 * @property decimal $costo_inicial
 * @property IN_CATALOGO $IN_CATALOGO
 * @property IN_CATALOGO $IN_CATALOGO_2
 * @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 INTERCEROS $INTERCEROS
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @property IN_ESPACIO $IN_ESPACIO
 * @property IN_TIPO_ALMACENAMIENTO $IN_TIPO_ALMACENAMIENTO
 * 
 * @method integer                getIdInventarioConsumo()    Returns the current record's "id_inventario_consumo" 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                getIdTipoAlmcenamiento()    Returns the current record's "id_tipo_almcenamiento" 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 string                 getCoordenadaX()            Returns the current record's "coordenada_x" value
 * @method string                 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 timestamp              getFechaIngreso()           Returns the current record's "fecha_ingreso" value
 * @method decimal                getCostoInicial()           Returns the current record's "costo_inicial" value
 * @method IN_CATALOGO            getINCATALOGO()             Returns the current record's "IN_CATALOGO" value
 * @method IN_CATALOGO            getINCATALOGO2()            Returns the current record's "IN_CATALOGO_2" 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 INTERCEROS             getINTERCEROS()             Returns the current record's "INTERCEROS" value
 * @method CENTRO_OPERACION       getCENTROOPERACION()        Returns the current record's "CENTRO_OPERACION" value
 * @method IN_ESPACIO             getINESPACIO()              Returns the current record's "IN_ESPACIO" value
 * @method IN_TIPO_ALMACENAMIENTO getINTIPOALMACENAMIENTO()   Returns the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method IN_INVENTARIO_CONSUMO  setIdInventarioConsumo()    Sets the current record's "id_inventario_consumo" value
 * @method IN_INVENTARIO_CONSUMO  setIdCenOp()                Sets the current record's "id_cen_op" value
 * @method IN_INVENTARIO_CONSUMO  setIdEspacio()              Sets the current record's "id_espacio" value
 * @method IN_INVENTARIO_CONSUMO  setIdMaeTer()               Sets the current record's "id_mae_ter" value
 * @method IN_INVENTARIO_CONSUMO  setIdTipoAlmcenamiento()    Sets the current record's "id_tipo_almcenamiento" value
 * @method IN_INVENTARIO_CONSUMO  setCodigo()                 Sets the current record's "codigo" value
 * @method IN_INVENTARIO_CONSUMO  setIdLinea()                Sets the current record's "id_linea" value
 * @method IN_INVENTARIO_CONSUMO  setIdClase()                Sets the current record's "id_clase" value
 * @method IN_INVENTARIO_CONSUMO  setIdCatalogo()             Sets the current record's "id_catalogo" value
 * @method IN_INVENTARIO_CONSUMO  setCoordenadaX()            Sets the current record's "coordenada_x" value
 * @method IN_INVENTARIO_CONSUMO  setCoordenadaY()            Sets the current record's "coordenada_y" value
 * @method IN_INVENTARIO_CONSUMO  setDescripcion()            Sets the current record's "descripcion" value
 * @method IN_INVENTARIO_CONSUMO  setEstado()                 Sets the current record's "estado" value
 * @method IN_INVENTARIO_CONSUMO  setFechaIngreso()           Sets the current record's "fecha_ingreso" value
 * @method IN_INVENTARIO_CONSUMO  setCostoInicial()           Sets the current record's "costo_inicial" value
 * @method IN_INVENTARIO_CONSUMO  setINCATALOGO()             Sets the current record's "IN_CATALOGO" value
 * @method IN_INVENTARIO_CONSUMO  setINCATALOGO2()            Sets the current record's "IN_CATALOGO_2" value
 * @method IN_INVENTARIO_CONSUMO  setINCATALOGO3()            Sets the current record's "IN_CATALOGO_3" value
 * @method IN_INVENTARIO_CONSUMO  setINCATALOGO4()            Sets the current record's "IN_CATALOGO_4" value
 * @method IN_INVENTARIO_CONSUMO  setINCATALOGO5()            Sets the current record's "IN_CATALOGO_5" value
 * @method IN_INVENTARIO_CONSUMO  setINCATALOGO6()            Sets the current record's "IN_CATALOGO_6" value
 * @method IN_INVENTARIO_CONSUMO  setINCATALOGO7()            Sets the current record's "IN_CATALOGO_7" value
 * @method IN_INVENTARIO_CONSUMO  setINCATALOGO8()            Sets the current record's "IN_CATALOGO_8" value
 * @method IN_INVENTARIO_CONSUMO  setINCATALOGO9()            Sets the current record's "IN_CATALOGO_9" value
 * @method IN_INVENTARIO_CONSUMO  setINTERCEROS()             Sets the current record's "INTERCEROS" value
 * @method IN_INVENTARIO_CONSUMO  setCENTROOPERACION()        Sets the current record's "CENTRO_OPERACION" value
 * @method IN_INVENTARIO_CONSUMO  setINESPACIO()              Sets the current record's "IN_ESPACIO" value
 * @method IN_INVENTARIO_CONSUMO  setINTIPOALMACENAMIENTO()   Sets the current record's "IN_TIPO_ALMACENAMIENTO" value
 * 
 * @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_CONSUMO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_INVENTARIO_CONSUMO');
        $this->hasColumn('id_inventario_consumo', '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_almcenamiento', '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', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('coordenada_y', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $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('fecha_ingreso', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('costo_inicial', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
    }

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

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_2', array(
             'local' => 'id_clase',
             '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('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

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

        $this->hasOne('IN_ESPACIO', array(
             'local' => 'id_espacio',
             'foreign' => 'id_espacio'));

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