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

/**
 * BaseIN_GRUPO_RECURSO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_recurso_inventario
 * @property integer $id_inventario_dv
 * @property IN_INVENTARIO_DV $IN_INVENTARIO_DV
 * @property IN_RECURSO_INVENTARIO $IN_RECURSO_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 IN_INVENTARIO_DV      getININVENTARIODV()        Returns the current record's "IN_INVENTARIO_DV" value
 * @method IN_RECURSO_INVENTARIO getINRECURSOINVENTARIO()   Returns the current record's "IN_RECURSO_INVENTARIO" value
 * @method IN_GRUPO_RECURSO      setIdRecursoInventario()   Sets the current record's "id_recurso_inventario" value
 * @method IN_GRUPO_RECURSO      setIdInventarioDv()        Sets the current record's "id_inventario_dv" value
 * @method IN_GRUPO_RECURSO      setININVENTARIODV()        Sets the current record's "IN_INVENTARIO_DV" value
 * @method IN_GRUPO_RECURSO      setINRECURSOINVENTARIO()   Sets the current record's "IN_RECURSO_INVENTARIO" 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_GRUPO_RECURSO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_GRUPO_RECURSO');
        $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(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
    }

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

        $this->hasOne('IN_RECURSO_INVENTARIO', array(
             'local' => 'id_recurso_inventario',
             'foreign' => 'id_recurso_inventario'));
    }
}