<?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 integer $id_detalle_asignacion
 * @property integer $id_partes_inventario
 * @property IN_INVENTARIO_DV $IN_INVENTARIO_DV
 * @property IN_DETALLE_ASIGNACION $IN_DETALLE_ASIGNACION
 * @property IN_PARTES_INVENTARIO $IN_PARTES_INVENTARIO
 * 
 * @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 integer               getIdDetalleAsignacion()   Returns the current record's "id_detalle_asignacion" value
 * @method integer               getIdPartesInventario()    Returns the current record's "id_partes_inventario" 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 IN_PARTES_INVENTARIO  getINPARTESINVENTARIO()    Returns the current record's "IN_PARTES_INVENTARIO" value
 * @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 setIdDetalleAsignacion()   Sets the current record's "id_detalle_asignacion" value
 * @method IN_RECURSO_INVENTARIO setIdPartesInventario()    Sets the current record's "id_partes_inventario" 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 setINPARTESINVENTARIO()    Sets the current record's "IN_PARTES_INVENTARIO" value
 * 
 * @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_RECURSO_INVENTARIO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_RECURSO_INVENTARIO');
        $this->hasColumn('id_recurso_inventario', 'integer', 8, array(
             'notnull' => false,
             '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' => false,
             '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('id_detalle_asignacion', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_partes_inventario', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

    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->hasOne('IN_PARTES_INVENTARIO', array(
             'local' => 'id_partes_inventario',
             'foreign' => 'id_partes_inventario'));
    }
}