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

/**
 * BaseIN_SALDO_INVENTARIO_CON
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_inventario_con
 * @property integer $id_vigencia
 * @property integer $id_meses
 * @property integer $id_cen_op
 * @property integer $id_espacio
 * @property integer $id_mae_ter
 * @property integer $id_tipo_almacenamiento
 * @property integer $estado
 * @property decimal $valor_unitario
 * @property integer $coordenada_x
 * @property integer $coordenada_y
 * @property integer $saldo_anterior
 * @property integer $entradas
 * @property integer $salidas
 * @property integer $saldo_actual
 * @property decimal $valor_promedio
 * @property decimal $valor_promedio_ant
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @property IN_ESPACIO $IN_ESPACIO
 * @property INTERCEROS $INTERCEROS
 * @property IN_TIPO_ALMACENAMIENTO $IN_TIPO_ALMACENAMIENTO
 * @property IN_INVENTARIO_CON $IN_INVENTARIO_CON
 * 
 * @method integer                 getIdInventarioCon()        Returns the current record's "id_inventario_con" value
 * @method integer                 getIdVigencia()             Returns the current record's "id_vigencia" value
 * @method integer                 getIdMeses()                Returns the current record's "id_meses" 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                 getEstado()                 Returns the current record's "estado" value
 * @method decimal                 getValorUnitario()          Returns the current record's "valor_unitario" value
 * @method integer                 getCoordenadaX()            Returns the current record's "coordenada_x" value
 * @method integer                 getCoordenadaY()            Returns the current record's "coordenada_y" value
 * @method integer                 getSaldoAnterior()          Returns the current record's "saldo_anterior" value
 * @method integer                 getEntradas()               Returns the current record's "entradas" value
 * @method integer                 getSalidas()                Returns the current record's "salidas" value
 * @method integer                 getSaldoActual()            Returns the current record's "saldo_actual" value
 * @method decimal                 getValorPromedio()          Returns the current record's "valor_promedio" value
 * @method decimal                 getValorPromedioAnt()       Returns the current record's "valor_promedio_ant" 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 INTERCEROS              getINTERCEROS()             Returns the current record's "INTERCEROS" value
 * @method IN_TIPO_ALMACENAMIENTO  getINTIPOALMACENAMIENTO()   Returns the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method IN_INVENTARIO_CON       getININVENTARIOCON()        Returns the current record's "IN_INVENTARIO_CON" value
 * @method IN_SALDO_INVENTARIO_CON setIdInventarioCon()        Sets the current record's "id_inventario_con" value
 * @method IN_SALDO_INVENTARIO_CON setIdVigencia()             Sets the current record's "id_vigencia" value
 * @method IN_SALDO_INVENTARIO_CON setIdMeses()                Sets the current record's "id_meses" value
 * @method IN_SALDO_INVENTARIO_CON setIdCenOp()                Sets the current record's "id_cen_op" value
 * @method IN_SALDO_INVENTARIO_CON setIdEspacio()              Sets the current record's "id_espacio" value
 * @method IN_SALDO_INVENTARIO_CON setIdMaeTer()               Sets the current record's "id_mae_ter" value
 * @method IN_SALDO_INVENTARIO_CON setIdTipoAlmacenamiento()   Sets the current record's "id_tipo_almacenamiento" value
 * @method IN_SALDO_INVENTARIO_CON setEstado()                 Sets the current record's "estado" value
 * @method IN_SALDO_INVENTARIO_CON setValorUnitario()          Sets the current record's "valor_unitario" value
 * @method IN_SALDO_INVENTARIO_CON setCoordenadaX()            Sets the current record's "coordenada_x" value
 * @method IN_SALDO_INVENTARIO_CON setCoordenadaY()            Sets the current record's "coordenada_y" value
 * @method IN_SALDO_INVENTARIO_CON setSaldoAnterior()          Sets the current record's "saldo_anterior" value
 * @method IN_SALDO_INVENTARIO_CON setEntradas()               Sets the current record's "entradas" value
 * @method IN_SALDO_INVENTARIO_CON setSalidas()                Sets the current record's "salidas" value
 * @method IN_SALDO_INVENTARIO_CON setSaldoActual()            Sets the current record's "saldo_actual" value
 * @method IN_SALDO_INVENTARIO_CON setValorPromedio()          Sets the current record's "valor_promedio" value
 * @method IN_SALDO_INVENTARIO_CON setValorPromedioAnt()       Sets the current record's "valor_promedio_ant" value
 * @method IN_SALDO_INVENTARIO_CON setCENTROOPERACION()        Sets the current record's "CENTRO_OPERACION" value
 * @method IN_SALDO_INVENTARIO_CON setINESPACIO()              Sets the current record's "IN_ESPACIO" value
 * @method IN_SALDO_INVENTARIO_CON setINTERCEROS()             Sets the current record's "INTERCEROS" value
 * @method IN_SALDO_INVENTARIO_CON setINTIPOALMACENAMIENTO()   Sets the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method IN_SALDO_INVENTARIO_CON setININVENTARIOCON()        Sets the current record's "IN_INVENTARIO_CON" 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_SALDO_INVENTARIO_CON extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_SALDO_INVENTARIO_CON');
        $this->hasColumn('id_inventario_con', '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_meses', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $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', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_almacenamiento', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('valor_unitario', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $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('saldo_anterior', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $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_actual', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_promedio', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_promedio_ant', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $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('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

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

        $this->hasOne('IN_INVENTARIO_CON', array(
             'local' => 'id_inventario_con',
             'foreign' => 'id_inventario_con'));
    }
}