<?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 integer $calificado
 * @property integer $id_partes_inventario
 * @property integer $estado
 * @property integer $id_tipo_almacenamiento
 * @property integer $id_mae_ter
 * @property INTERCEROS $INTERCEROS
 * @property IN_PARTES_INVENTARIO $IN_PARTES_INVENTARIO
 * @property IN_TIPO_ALMACENAMIENTO $IN_TIPO_ALMACENAMIENTO
 * @property IN_TOMA_INVENTARIO $IN_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 Doctrine_Collection $IN_PARTES_INVENTARIO_TEMPO
 * @property Doctrine_Collection $IN_INVENTARIO_DV_TEMPO
 * @property Doctrine_Collection $IN_DETALLE_ASIGNACION_TEMPO
 * 
 * @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 integer                getCalificado()                  Returns the current record's "calificado" value
 * @method integer                getIdPartesInventario()          Returns the current record's "id_partes_inventario" value
 * @method integer                getEstado()                      Returns the current record's "estado" value
 * @method integer                getIdTipoAlmacenamiento()        Returns the current record's "id_tipo_almacenamiento" value
 * @method integer                getIdMaeTer()                    Returns the current record's "id_mae_ter" value
 * @method INTERCEROS             getINTERCEROS()                  Returns the current record's "INTERCEROS" value
 * @method IN_PARTES_INVENTARIO   getINPARTESINVENTARIO()          Returns the current record's "IN_PARTES_INVENTARIO" value
 * @method IN_TIPO_ALMACENAMIENTO getINTIPOALMACENAMIENTO()        Returns the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method IN_TOMA_INVENTARIO     getINTOMAINVENTARIO()            Returns the current record's "IN_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 Doctrine_Collection    getINPARTESINVENTARIOTEMPO()     Returns the current record's "IN_PARTES_INVENTARIO_TEMPO" collection
 * @method Doctrine_Collection    getININVENTARIODVTEMPO()         Returns the current record's "IN_INVENTARIO_DV_TEMPO" collection
 * @method Doctrine_Collection    getINDETALLEASIGNACIONTEMPO()    Returns the current record's "IN_DETALLE_ASIGNACION_TEMPO" collection
 * @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  setCalificado()                  Sets the current record's "calificado" value
 * @method IN_DETALLE_ASIGNACION  setIdPartesInventario()          Sets the current record's "id_partes_inventario" value
 * @method IN_DETALLE_ASIGNACION  setEstado()                      Sets the current record's "estado" value
 * @method IN_DETALLE_ASIGNACION  setIdTipoAlmacenamiento()        Sets the current record's "id_tipo_almacenamiento" value
 * @method IN_DETALLE_ASIGNACION  setIdMaeTer()                    Sets the current record's "id_mae_ter" value
 * @method IN_DETALLE_ASIGNACION  setINTERCEROS()                  Sets the current record's "INTERCEROS" value
 * @method IN_DETALLE_ASIGNACION  setINPARTESINVENTARIO()          Sets the current record's "IN_PARTES_INVENTARIO" value
 * @method IN_DETALLE_ASIGNACION  setINTIPOALMACENAMIENTO()        Sets the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method IN_DETALLE_ASIGNACION  setINTOMAINVENTARIO()            Sets the current record's "IN_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  setINPARTESINVENTARIOTEMPO()     Sets the current record's "IN_PARTES_INVENTARIO_TEMPO" collection
 * @method IN_DETALLE_ASIGNACION  setININVENTARIODVTEMPO()         Sets the current record's "IN_INVENTARIO_DV_TEMPO" collection
 * @method IN_DETALLE_ASIGNACION  setINDETALLEASIGNACIONTEMPO()    Sets the current record's "IN_DETALLE_ASIGNACION_TEMPO" 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_DETALLE_ASIGNACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_DETALLE_ASIGNACION');
        $this->hasColumn('id_detalle_asignacion', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_asignacion_toma', 'integer', 8, array(
             'notnull' => false,
             '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' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_toma_inventario', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('calificado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_partes_inventario', 'integer', 8, array(
             'notnull' => true,
             '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' => '1',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_tipo_almacenamiento', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('IN_PARTES_INVENTARIO', array(
             'local' => 'id_partes_inventario',
             'foreign' => 'id_partes_inventario'));

        $this->hasOne('IN_TIPO_ALMACENAMIENTO', array(
             'local' => 'id_tipo_almacenamiento',
             'foreign' => 'id_tipo_almacenamiento'));

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

        $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->hasMany('IN_PARTES_INVENTARIO_TEMPO', array(
             'local' => 'id_detalle_asignacion',
             'foreign' => 'id_detalle_asignacion'));

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

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