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

/**
 * BaseIN_RECURSO_INVENTARIO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_recurso_inventario
 * @property integer $id_inventario_dv
 * @property timestamp $fecha_recurso
 * @property blob $foto_recurso
 * @property string $observacion
 * @property string $nombre_archivo
 * @property string $latitud
 * @property string $longitud
 * @property integer $id_detalle_asignacion
 * @property integer $estado
 * @property IN_INVENTARIO_DV $IN_INVENTARIO_DV
 * @property IN_DETALLE_ASIGNACION $IN_DETALLE_ASIGNACION
 * @property Doctrine_Collection $IN_GRUPO_RECURSO
 * 
 * @method integer               getIdRecursoInventario()   Returns the current record's "id_recurso_inventario" value
 * @method integer               getIdInventarioDv()        Returns the current record's "id_inventario_dv" value
 * @method timestamp             getFechaRecurso()          Returns the current record's "fecha_recurso" value
 * @method blob                  getFotoRecurso()           Returns the current record's "foto_recurso" value
 * @method string                getObservacion()           Returns the current record's "observacion" value
 * @method string                getNombreArchivo()         Returns the current record's "nombre_archivo" value
 * @method string                getLatitud()               Returns the current record's "latitud" value
 * @method string                getLongitud()              Returns the current record's "longitud" value
 * @method integer               getIdDetalleAsignacion()   Returns the current record's "id_detalle_asignacion" value
 * @method integer               getEstado()                Returns the current record's "estado" value
 * @method IN_INVENTARIO_DV      getININVENTARIODV()        Returns the current record's "IN_INVENTARIO_DV" value
 * @method IN_DETALLE_ASIGNACION getINDETALLEASIGNACION()   Returns the current record's "IN_DETALLE_ASIGNACION" value
 * @method Doctrine_Collection   getINGRUPORECURSO()        Returns the current record's "IN_GRUPO_RECURSO" collection
 * @method IN_RECURSO_INVENTARIO setIdRecursoInventario()   Sets the current record's "id_recurso_inventario" value
 * @method IN_RECURSO_INVENTARIO setIdInventarioDv()        Sets the current record's "id_inventario_dv" value
 * @method IN_RECURSO_INVENTARIO setFechaRecurso()          Sets the current record's "fecha_recurso" value
 * @method IN_RECURSO_INVENTARIO setFotoRecurso()           Sets the current record's "foto_recurso" value
 * @method IN_RECURSO_INVENTARIO setObservacion()           Sets the current record's "observacion" value
 * @method IN_RECURSO_INVENTARIO setNombreArchivo()         Sets the current record's "nombre_archivo" value
 * @method IN_RECURSO_INVENTARIO setLatitud()               Sets the current record's "latitud" value
 * @method IN_RECURSO_INVENTARIO setLongitud()              Sets the current record's "longitud" value
 * @method IN_RECURSO_INVENTARIO setIdDetalleAsignacion()   Sets the current record's "id_detalle_asignacion" value
 * @method IN_RECURSO_INVENTARIO setEstado()                Sets the current record's "estado" value
 * @method IN_RECURSO_INVENTARIO setININVENTARIODV()        Sets the current record's "IN_INVENTARIO_DV" value
 * @method IN_RECURSO_INVENTARIO setINDETALLEASIGNACION()   Sets the current record's "IN_DETALLE_ASIGNACION" value
 * @method IN_RECURSO_INVENTARIO setINGRUPORECURSO()        Sets the current record's "IN_GRUPO_RECURSO" 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_RECURSO_INVENTARIO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_RECURSO_INVENTARIO');
        $this->hasColumn('id_recurso_inventario', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_inventario_dv', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_recurso', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('foto_recurso', 'blob', 4000, array(
             'notnull' => true,
             'type' => 'blob',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('observacion', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('nombre_archivo', 'string', 50, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('latitud', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('longitud', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('id_detalle_asignacion', 'integer', 8, array(
             'notnull' => false,
             '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' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('IN_DETALLE_ASIGNACION', array(
             'local' => 'id_detalle_asignacion',
             'foreign' => 'id_detalle_asignacion'));

        $this->hasMany('IN_GRUPO_RECURSO', array(
             'local' => 'id_recurso_inventario',
             'foreign' => 'id_recurso_inventario'));
    }
}