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

/**
 * BaseIN_PARTES_INVENTARIO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_partes_inventario
 * @property integer $id_inventario_dv
 * @property integer $id_partes_clase
 * @property string $serie
 * @property integer $plaqueta
 * @property string $placa
 * @property string $observaciones
 * @property integer $estado
 * @property string $codigo_bar
 * @property IN_INVENTARIO_DV $IN_INVENTARIO_DV
 * @property IN_PARTES_CLASE $IN_PARTES_CLASE
 * @property Doctrine_Collection $IN_RECURSO_INVENTARIO
 * @property Doctrine_Collection $IN_PARTES_INVENTARIO_TEMPO
 * @property Doctrine_Collection $IN_DETALLE_ASIGNACION_TEMPO
 * @property Doctrine_Collection $IN_DETALLE_ASIGNACION
 * @property Doctrine_Collection $IN_DESAGREGACION_INV
 * 
 * @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 integer              getIdPartesClase()               Returns the current record's "id_partes_clase" 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 integer              getEstado()                      Returns the current record's "estado" value
 * @method string               getCodigoBar()                   Returns the current record's "codigo_bar" value
 * @method IN_INVENTARIO_DV     getININVENTARIODV()              Returns the current record's "IN_INVENTARIO_DV" value
 * @method IN_PARTES_CLASE      getINPARTESCLASE()               Returns the current record's "IN_PARTES_CLASE" 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  getINDETALLEASIGNACIONTEMPO()    Returns the current record's "IN_DETALLE_ASIGNACION_TEMPO" collection
 * @method Doctrine_Collection  getINDETALLEASIGNACION()         Returns the current record's "IN_DETALLE_ASIGNACION" collection
 * @method Doctrine_Collection  getINDESAGREGACIONINV()          Returns the current record's "IN_DESAGREGACION_INV" collection
 * @method IN_PARTES_INVENTARIO setIdPartesInventario()          Sets the current record's "id_partes_inventario" value
 * @method IN_PARTES_INVENTARIO setIdInventarioDv()              Sets the current record's "id_inventario_dv" value
 * @method IN_PARTES_INVENTARIO setIdPartesClase()               Sets the current record's "id_partes_clase" value
 * @method IN_PARTES_INVENTARIO setSerie()                       Sets the current record's "serie" value
 * @method IN_PARTES_INVENTARIO setPlaqueta()                    Sets the current record's "plaqueta" value
 * @method IN_PARTES_INVENTARIO setPlaca()                       Sets the current record's "placa" value
 * @method IN_PARTES_INVENTARIO setObservaciones()               Sets the current record's "observaciones" value
 * @method IN_PARTES_INVENTARIO setEstado()                      Sets the current record's "estado" value
 * @method IN_PARTES_INVENTARIO setCodigoBar()                   Sets the current record's "codigo_bar" value
 * @method IN_PARTES_INVENTARIO setININVENTARIODV()              Sets the current record's "IN_INVENTARIO_DV" value
 * @method IN_PARTES_INVENTARIO setINPARTESCLASE()               Sets the current record's "IN_PARTES_CLASE" value
 * @method IN_PARTES_INVENTARIO setINRECURSOINVENTARIO()         Sets the current record's "IN_RECURSO_INVENTARIO" collection
 * @method IN_PARTES_INVENTARIO setINPARTESINVENTARIOTEMPO()     Sets the current record's "IN_PARTES_INVENTARIO_TEMPO" collection
 * @method IN_PARTES_INVENTARIO setINDETALLEASIGNACIONTEMPO()    Sets the current record's "IN_DETALLE_ASIGNACION_TEMPO" collection
 * @method IN_PARTES_INVENTARIO setINDETALLEASIGNACION()         Sets the current record's "IN_DETALLE_ASIGNACION" collection
 * @method IN_PARTES_INVENTARIO setINDESAGREGACIONINV()          Sets the current record's "IN_DESAGREGACION_INV" collection
 * 
 * @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 extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_PARTES_INVENTARIO');
        $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('id_partes_clase', '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('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('codigo_bar', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
    }

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

        $this->hasOne('IN_PARTES_CLASE', array(
             'local' => 'id_partes_clase',
             'foreign' => 'id_partes_clase'));

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

        $this->hasMany('IN_PARTES_INVENTARIO_TEMPO', array(
             'local' => 'id_partes_inventario',
             'foreign' => 'id_partes_inventario'));

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

        $this->hasMany('IN_DETALLE_ASIGNACION', array(
             'local' => 'id_partes_inventario',
             'foreign' => 'id_partes_inventario'));

        $this->hasMany('IN_DESAGREGACION_INV', array(
             'local' => 'id_partes_inventario',
             'foreign' => 'id_partes_inventario'));
    }
}