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

/**
 * BaseIN_PARTES_INVENTARIO_TEMPO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_partes_inventario_tempo
 * @property integer $id_partes_inventario
 * @property integer $id_inventario_dv
 * @property string $serie
 * @property integer $plaqueta
 * @property string $placa
 * @property string $observaciones
 * @property string $codigo_bar
 * @property integer $id_detalle_asignacion
 * @property timestamp $fecha_mod
 * @property IN_PARTES_INVENTARIO $IN_PARTES_INVENTARIO
 * @property IN_INVENTARIO_DV $IN_INVENTARIO_DV
 * 
 * @method integer                    getIdPartesInventarioTempo()    Returns the current record's "id_partes_inventario_tempo" value
 * @method integer                    getIdPartesInventario()         Returns the current record's "id_partes_inventario" value
 * @method integer                    getIdInventarioDv()             Returns the current record's "id_inventario_dv" value
 * @method string                     getSerie()                      Returns the current record's "serie" value
 * @method integer                    getPlaqueta()                   Returns the current record's "plaqueta" value
 * @method string                     getPlaca()                      Returns the current record's "placa" value
 * @method string                     getObservaciones()              Returns the current record's "observaciones" value
 * @method string                     getCodigoBar()                  Returns the current record's "codigo_bar" value
 * @method integer                    getIdDetalleAsignacion()        Returns the current record's "id_detalle_asignacion" value
 * @method timestamp                  getFechaMod()                   Returns the current record's "fecha_mod" value
 * @method IN_PARTES_INVENTARIO       getINPARTESINVENTARIO()         Returns the current record's "IN_PARTES_INVENTARIO" value
 * @method IN_INVENTARIO_DV           getININVENTARIODV()             Returns the current record's "IN_INVENTARIO_DV" value
 * @method IN_PARTES_INVENTARIO_TEMPO setIdPartesInventarioTempo()    Sets the current record's "id_partes_inventario_tempo" value
 * @method IN_PARTES_INVENTARIO_TEMPO setIdPartesInventario()         Sets the current record's "id_partes_inventario" value
 * @method IN_PARTES_INVENTARIO_TEMPO setIdInventarioDv()             Sets the current record's "id_inventario_dv" value
 * @method IN_PARTES_INVENTARIO_TEMPO setSerie()                      Sets the current record's "serie" value
 * @method IN_PARTES_INVENTARIO_TEMPO setPlaqueta()                   Sets the current record's "plaqueta" value
 * @method IN_PARTES_INVENTARIO_TEMPO setPlaca()                      Sets the current record's "placa" value
 * @method IN_PARTES_INVENTARIO_TEMPO setObservaciones()              Sets the current record's "observaciones" value
 * @method IN_PARTES_INVENTARIO_TEMPO setCodigoBar()                  Sets the current record's "codigo_bar" value
 * @method IN_PARTES_INVENTARIO_TEMPO setIdDetalleAsignacion()        Sets the current record's "id_detalle_asignacion" value
 * @method IN_PARTES_INVENTARIO_TEMPO setFechaMod()                   Sets the current record's "fecha_mod" value
 * @method IN_PARTES_INVENTARIO_TEMPO setINPARTESINVENTARIO()         Sets the current record's "IN_PARTES_INVENTARIO" value
 * @method IN_PARTES_INVENTARIO_TEMPO setININVENTARIODV()             Sets the current record's "IN_INVENTARIO_DV" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_PARTES_INVENTARIO_TEMPO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_PARTES_INVENTARIO_TEMPO');
        $this->hasColumn('id_partes_inventario_tempo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_partes_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('serie', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('plaqueta', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('placa', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('observaciones', 'string', 800, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 800,
             ));
        $this->hasColumn('codigo_bar', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('id_detalle_asignacion', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_mod', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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

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