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

/**
 * BaseIN_ESPACIO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_espacio
 * @property integer $id_estructura
 * @property integer $id_tipo_espacio
 * @property string $descripcion
 * @property string $nivel
 * @property integer $coordenada_x
 * @property integer $coordenada_y
 * @property integer $estado
 * @property IN_ESTRUCTURA $IN_ESTRUCTURA
 * @property IN_TIPO_ESPACIO $IN_TIPO_ESPACIO
 * @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_3
 * @property Doctrine_Collection $IN_MOVIMIENTOS_CON
 * @property Doctrine_Collection $IN_MOVIMIENTOS_CON_8
 * @property Doctrine_Collection $IN_INVENTARIO_DV_TEMPO
 * @property Doctrine_Collection $IN_INVENTARIO_DV_TEMPO_7
 * @property Doctrine_Collection $IN_INVENTARIO_DV
 * @property Doctrine_Collection $IN_INVENTARIO_CON
 * @property Doctrine_Collection $IN_ASIGNACION_TOMA
 * 
 * @method integer             getIdEspacio()                Returns the current record's "id_espacio" value
 * @method integer             getIdEstructura()             Returns the current record's "id_estructura" value
 * @method integer             getIdTipoEspacio()            Returns the current record's "id_tipo_espacio" value
 * @method string              getDescripcion()              Returns the current record's "descripcion" value
 * @method string              getNivel()                    Returns the current record's "nivel" 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             getEstado()                   Returns the current record's "estado" value
 * @method IN_ESTRUCTURA       getINESTRUCTURA()             Returns the current record's "IN_ESTRUCTURA" value
 * @method IN_TIPO_ESPACIO     getINTIPOESPACIO()            Returns the current record's "IN_TIPO_ESPACIO" value
 * @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 getINMOVIMIENTOSDV3()         Returns the current record's "IN_MOVIMIENTOS_DV_3" collection
 * @method Doctrine_Collection getINMOVIMIENTOSCON()         Returns the current record's "IN_MOVIMIENTOS_CON" collection
 * @method Doctrine_Collection getINMOVIMIENTOSCON8()        Returns the current record's "IN_MOVIMIENTOS_CON_8" collection
 * @method Doctrine_Collection getININVENTARIODVTEMPO()      Returns the current record's "IN_INVENTARIO_DV_TEMPO" collection
 * @method Doctrine_Collection getININVENTARIODVTEMPO7()     Returns the current record's "IN_INVENTARIO_DV_TEMPO_7" 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 getINASIGNACIONTOMA()         Returns the current record's "IN_ASIGNACION_TOMA" collection
 * @method IN_ESPACIO          setIdEspacio()                Sets the current record's "id_espacio" value
 * @method IN_ESPACIO          setIdEstructura()             Sets the current record's "id_estructura" value
 * @method IN_ESPACIO          setIdTipoEspacio()            Sets the current record's "id_tipo_espacio" value
 * @method IN_ESPACIO          setDescripcion()              Sets the current record's "descripcion" value
 * @method IN_ESPACIO          setNivel()                    Sets the current record's "nivel" value
 * @method IN_ESPACIO          setCoordenadaX()              Sets the current record's "coordenada_x" value
 * @method IN_ESPACIO          setCoordenadaY()              Sets the current record's "coordenada_y" value
 * @method IN_ESPACIO          setEstado()                   Sets the current record's "estado" value
 * @method IN_ESPACIO          setINESTRUCTURA()             Sets the current record's "IN_ESTRUCTURA" value
 * @method IN_ESPACIO          setINTIPOESPACIO()            Sets the current record's "IN_TIPO_ESPACIO" value
 * @method IN_ESPACIO          setINSALDOINVENTARIODV()      Sets the current record's "IN_SALDO_INVENTARIO_DV" collection
 * @method IN_ESPACIO          setINSALDOINVENTARIOCON()     Sets the current record's "IN_SALDO_INVENTARIO_CON" collection
 * @method IN_ESPACIO          setINMOVIMIENTOSDV()          Sets the current record's "IN_MOVIMIENTOS_DV" collection
 * @method IN_ESPACIO          setINMOVIMIENTOSDV3()         Sets the current record's "IN_MOVIMIENTOS_DV_3" collection
 * @method IN_ESPACIO          setINMOVIMIENTOSCON()         Sets the current record's "IN_MOVIMIENTOS_CON" collection
 * @method IN_ESPACIO          setINMOVIMIENTOSCON8()        Sets the current record's "IN_MOVIMIENTOS_CON_8" collection
 * @method IN_ESPACIO          setININVENTARIODVTEMPO()      Sets the current record's "IN_INVENTARIO_DV_TEMPO" collection
 * @method IN_ESPACIO          setININVENTARIODVTEMPO7()     Sets the current record's "IN_INVENTARIO_DV_TEMPO_7" collection
 * @method IN_ESPACIO          setININVENTARIODV()           Sets the current record's "IN_INVENTARIO_DV" collection
 * @method IN_ESPACIO          setININVENTARIOCON()          Sets the current record's "IN_INVENTARIO_CON" collection
 * @method IN_ESPACIO          setINASIGNACIONTOMA()         Sets the current record's "IN_ASIGNACION_TOMA" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_ESPACIO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_ESPACIO');
        $this->hasColumn('id_espacio', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_estructura', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_espacio', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('nivel', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $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('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('IN_TIPO_ESPACIO', array(
             'local' => 'id_tipo_espacio',
             'foreign' => 'id_tipo_espacio'));

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

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

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

        $this->hasMany('IN_MOVIMIENTOS_DV as IN_MOVIMIENTOS_DV_3', array(
             'local' => 'id_espacio',
             'foreign' => 'id_espacio_fin'));

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

        $this->hasMany('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_8', array(
             'local' => 'id_espacio',
             'foreign' => 'id_espacio_fin'));

        $this->hasMany('IN_INVENTARIO_DV_TEMPO', array(
             'local' => 'id_espacio',
             'foreign' => 'id_espacio_ini'));

        $this->hasMany('IN_INVENTARIO_DV_TEMPO as IN_INVENTARIO_DV_TEMPO_7', array(
             'local' => 'id_espacio',
             'foreign' => 'id_espacio_fin'));

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

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

        $this->hasMany('IN_ASIGNACION_TOMA', array(
             'local' => 'id_espacio',
             'foreign' => 'id_espacio'));
    }
}