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

/**
 * BaseIN_DETALLE_ASIGNACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_detalle_asignacion
 * @property integer $id_asignacion_toma
 * @property integer $id_inventario_dv
 * @property integer $id_estado_elemento
 * @property integer $faltante
 * @property timestamp $fecha_reporte
 * @property string $observacion
 * @property integer $anulado
 * @property integer $id_toma_inventario
 * @property IN_ESTADO_ELEMENTO $IN_ESTADO_ELEMENTO
 * @property IN_INVENTARIO_DV $IN_INVENTARIO_DV
 * @property IN_ASIGNACION_TOMA $IN_ASIGNACION_TOMA
 * @property Doctrine_Collection $IN_RECURSO_INVENTARIO
 * @property IN_TOMA_INVENTARIO $IN_TOMA_INVENTARIO
 * 
 * @method integer               getIdDetalleAsignacion()   Returns the current record's "id_detalle_asignacion" value
 * @method integer               getIdAsignacionToma()      Returns the current record's "id_asignacion_toma" value
 * @method integer               getIdInventarioDv()        Returns the current record's "id_inventario_dv" value
 * @method integer               getIdEstadoElemento()      Returns the current record's "id_estado_elemento" value
 * @method integer               getFaltante()              Returns the current record's "faltante" value
 * @method timestamp             getFechaReporte()          Returns the current record's "fecha_reporte" value
 * @method string                getObservacion()           Returns the current record's "observacion" value
 * @method integer               getAnulado()               Returns the current record's "anulado" value
 * @method integer               getIdTomaInventario()      Returns the current record's "id_toma_inventario" value
 * @method IN_ESTADO_ELEMENTO    getINESTADOELEMENTO()      Returns the current record's "IN_ESTADO_ELEMENTO" value
 * @method IN_INVENTARIO_DV      getININVENTARIODV()        Returns the current record's "IN_INVENTARIO_DV" value
 * @method IN_ASIGNACION_TOMA    getINASIGNACIONTOMA()      Returns the current record's "IN_ASIGNACION_TOMA" value
 * @method Doctrine_Collection   getINRECURSOINVENTARIO()   Returns the current record's "IN_RECURSO_INVENTARIO" collection
 * @method IN_TOMA_INVENTARIO    getINTOMAINVENTARIO()      Returns the current record's "IN_TOMA_INVENTARIO" value
 * @method IN_DETALLE_ASIGNACION setIdDetalleAsignacion()   Sets the current record's "id_detalle_asignacion" value
 * @method IN_DETALLE_ASIGNACION setIdAsignacionToma()      Sets the current record's "id_asignacion_toma" value
 * @method IN_DETALLE_ASIGNACION setIdInventarioDv()        Sets the current record's "id_inventario_dv" value
 * @method IN_DETALLE_ASIGNACION setIdEstadoElemento()      Sets the current record's "id_estado_elemento" value
 * @method IN_DETALLE_ASIGNACION setFaltante()              Sets the current record's "faltante" value
 * @method IN_DETALLE_ASIGNACION setFechaReporte()          Sets the current record's "fecha_reporte" value
 * @method IN_DETALLE_ASIGNACION setObservacion()           Sets the current record's "observacion" value
 * @method IN_DETALLE_ASIGNACION setAnulado()               Sets the current record's "anulado" value
 * @method IN_DETALLE_ASIGNACION setIdTomaInventario()      Sets the current record's "id_toma_inventario" value
 * @method IN_DETALLE_ASIGNACION setINESTADOELEMENTO()      Sets the current record's "IN_ESTADO_ELEMENTO" value
 * @method IN_DETALLE_ASIGNACION setININVENTARIODV()        Sets the current record's "IN_INVENTARIO_DV" value
 * @method IN_DETALLE_ASIGNACION setINASIGNACIONTOMA()      Sets the current record's "IN_ASIGNACION_TOMA" value
 * @method IN_DETALLE_ASIGNACION setINRECURSOINVENTARIO()   Sets the current record's "IN_RECURSO_INVENTARIO" collection
 * @method IN_DETALLE_ASIGNACION setINTOMAINVENTARIO()      Sets the current record's "IN_TOMA_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_DETALLE_ASIGNACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_DETALLE_ASIGNACION');
        $this->hasColumn('id_detalle_asignacion', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_asignacion_toma', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_inventario_dv', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_estado_elemento', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('faltante', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_reporte', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observacion', 'string', 999, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 999,
             ));
        $this->hasColumn('anulado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_toma_inventario', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('IN_INVENTARIO_DV', array(
             'local' => 'id_inventario_dv',
             'foreign' => 'id_inventario_dv'));

        $this->hasOne('IN_ASIGNACION_TOMA', array(
             'local' => 'id_asignacion_toma',
             'foreign' => 'id_asignacion_toma'));

        $this->hasMany('IN_RECURSO_INVENTARIO', array(
             'local' => 'id_detalle_asignacion',
             'foreign' => 'id_detalle_asignacion'));

        $this->hasOne('IN_TOMA_INVENTARIO', array(
             'local' => 'id_toma_inventario',
             'foreign' => 'id_toma_inventario'));
    }
}